mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
Export LDC_RuntimeCompilation version when runtime compilation is enabled
This commit is contained in:
parent
0ef4edb0fb
commit
482b822d73
4 changed files with 18 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue