forked from OSchip/llvm-project
move the linux predefined macro definition to the TargetInfo, where it really belongs
llvm-svn: 53149
This commit is contained in:
parent
c9c3f49993
commit
3da38fd145
|
@ -48,6 +48,11 @@ public:
|
|||
Define(Defs, "__APPLE__");
|
||||
Define(Defs, "__MACH__");
|
||||
#endif
|
||||
|
||||
/* FIXME. we may also need to distinguish between darwin and linux targets */
|
||||
#ifdef linux
|
||||
Define(Defs, "linux");
|
||||
#endif
|
||||
|
||||
if (1) {// -fobjc-gc controls this.
|
||||
Define(Defs, "__weak", "");
|
||||
|
|
|
@ -433,11 +433,6 @@ static void InitializePredefinedMacros(Preprocessor &PP,
|
|||
DefineBuiltinMacro(Buf, "__FINITE_MATH_ONLY__=0");
|
||||
DefineBuiltinMacro(Buf, "__NO_INLINE__=1");
|
||||
DefineBuiltinMacro(Buf, "__PIC__=1");
|
||||
|
||||
/* FIXME: this check should be moved to the configure process */
|
||||
#ifdef linux
|
||||
DefineBuiltinMacro(Buf, "linux=1");
|
||||
#endif
|
||||
|
||||
|
||||
if (PP.getLangOptions().CPlusPlus) {
|
||||
|
|
Loading…
Reference in New Issue