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

@ -944,9 +944,11 @@ void registerPredefinedVersions() {
VersionCondition::addPredefinedGlobalIdent("D_ObjectiveC");
}
if (global.params.enableRuntimeCompile) {
#if defined(LDC_RUNTIME_COMPILE)
if (opts::enableRuntimeCompile) {
VersionCondition::addPredefinedGlobalIdent("LDC_RuntimeCompilation");
}
#endif
// Define sanitizer versions.
if (opts::isSanitizerEnabled(opts::AddressSanitizer)) {