Export LDC_RuntimeCompilation version when runtime compilation is enabled

This commit is contained in:
Ivan 2017-08-27 13:38:16 +03:00
parent 0ef4edb0fb
commit 482b822d73
4 changed files with 18 additions and 1 deletions

View file

@ -946,6 +946,10 @@ void registerPredefinedVersions() {
VersionCondition::addPredefinedGlobalIdent("D_ObjectiveC");
}
if (global.params.enableRuntimeCompile) {
VersionCondition::addPredefinedGlobalIdent("LDC_RuntimeCompilation");
}
// Define sanitizer versions.
if (opts::isSanitizerEnabled(opts::AddressSanitizer)) {
VersionCondition::addPredefinedGlobalIdent("LDC_AddressSanitizer");