Do not use exteranl storage for enableRuntimeCompile flag

This commit is contained in:
Ivan 2017-09-05 21:23:39 +03:00
parent 5bb48d84c4
commit a9f6875494
7 changed files with 18 additions and 11 deletions

View file

@ -118,10 +118,12 @@ int linkObjToBinaryMSVC(llvm::StringRef outputPath, bool useInternalLinker,
args.push_back("ws2_32.lib");
}
if (global.params.enableRuntimeCompile) {
#if defined(LDC_RUNTIME_COMPILE)
if (opts::enableRuntimeCompile) {
args.push_back("ldc-jit-rt.lib");
args.push_back("ldc-jit.lib");
}
#endif
// user libs
for (auto libfile : *global.params.libfiles) {