Replacing an Xcode Preprocessor with a User Process

I need to see the files that Xcode will compile before the preprocessor gets a shot. In short, I need to stick with the preprocessor before the preprocessor.

All of Google’s search queries gave me nada when it comes to how to start the default build process of Xcode for C-based files after changing the build rule for “C source files”. Xcode seems to be invoking a process (shell script? Voodoo chant?) Called "CompileC", but I can't find it to invoke it myself after I finish with the source file.

Any ideas? For the curious, I need to change certain macros in very specific situations (depending on the name of the source file or the build date, for example). And there seems to be no smart way: #ifdef filename = "bobsyeruncle.m"

+3
source share

Source: https://habr.com/ru/post/1721125/


All Articles