forked from OSchip/llvm-project
clang uses the llvm backend, so define __llvm__ like llvm-gcc.
Additionally, define __clang__ so clients can predicate based on clang features. llvm-svn: 52788
This commit is contained in:
parent
1aab7a5b2a
commit
d1224b2493
|
@ -415,6 +415,9 @@ static void InitializePredefinedMacros(Preprocessor &PP,
|
|||
// Get the target #defines.
|
||||
PP.getTargetInfo().getTargetDefines(Buf);
|
||||
|
||||
DefineBuiltinMacro(Buf, "__llvm__=1"); // LLVM Backend
|
||||
DefineBuiltinMacro(Buf, "__clang__=1"); // Clang Frontend
|
||||
|
||||
// Compiler set macros.
|
||||
DefineBuiltinMacro(Buf, "__APPLE_CC__=5250");
|
||||
DefineBuiltinMacro(Buf, "__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1050");
|
||||
|
|
Loading…
Reference in New Issue