mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-06-08 17:54:10 +02: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();
|
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) {
|
if (global.params.os == OSWindows) {
|
||||||
global.dll_ext = "dll";
|
global.dll_ext = "dll";
|
||||||
global.lib_ext = "lib";
|
global.lib_ext = "lib";
|
||||||
|
|||||||
Submodule runtime/druntime updated: e89eb4b3ad...6ac9475aa2
Reference in New Issue
Block a user