How to detect XCode vs Makefile build -


I have to automatically detect (using #ifdef) whether I am using XCode or Darwin I'm using the under-make. Does a specific XCode define or automatically set by a tool? I'ld like to avoid defining the XCode project or Macfile manually.

If you expand the XCode 'Build Results' window, and one of the "MyFile.m" compilations (Select the row, then click on the "Text on the right" icon), you can see that the exact order using XCode is to invite GCC, including any "-D" option on the command line.

I do not believe that create is adding any-D automatically defines it.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -