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

@ -340,12 +340,10 @@ void ArgsBuilder::build(llvm::StringRef outputPath,
args.push_back("-lldc-profile-rt");
}
#if defined(LDC_RUNTIME_COMPILE)
if (opts::enableRuntimeCompile) {
if (opts::isRuntimeCompileEnabled()) {
args.push_back("-lldc-jit-rt");
args.push_back("-lldc-jit");
}
#endif
// user libs
for (auto libfile : *global.params.libfiles) {