Expose LLVM as global version symbol.

Required because prototypes of intrinsics changed between 3.0 and 3.1.
This commit is contained in:
kai
2012-08-03 16:44:34 +02:00
parent 6e427fe818
commit 76cf66f50b
2 changed files with 8 additions and 1 deletions

View File

@@ -695,6 +695,13 @@ int main(int argc, char** argv)
fatal();
}
// Expose LLVM version to runtime
#define STR(x) #x
#define XSTR(x) STR(x)
VersionCondition::addPredefinedGlobalIdent("LDC_LLVM_"XSTR(LDC_LLVM_VER));
#undef XSTR
#undef STR
if (global.params.os == OSWindows) {
global.dll_ext = "dll";
global.lib_ext = "lib";