If you link to files in the Generated Files folder, you won’t see their changes if everything you change is the target platform (well, if you do not place the #ifdef blocks in the IDL, it defines the specific ones). Remember that MIDL output is source code, not binary files. The data type names used in the generated code will not change, so the output from the MIDL will be the same even if the architecture of the machine the compiler is targeting is different.
You can verify this by making copies of the files XXX_i.h and XXX_i.c and comparing them between platforms. To do this, create, create copies, rebuild, then compare the files; the only thing that should be different is the timestamp.
So, to return to the original question: you are already doing this!
source share