mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Expose LLVM as global version symbol.
Required because prototypes of intrinsics changed between 3.0 and 3.1.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user