opts::isRuntimeCompileEnabled() helper function

This commit is contained in:
Ivan 2017-09-06 21:20:49 +03:00
parent ac763b0520
commit ccc87bdb9d
5 changed files with 9 additions and 12 deletions

View file

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