diff --git a/driver/main.cpp b/driver/main.cpp index 4630f8e65d9..e7c39bf8e58 100644 --- a/driver/main.cpp +++ b/driver/main.cpp @@ -916,6 +916,10 @@ void registerPredefinedVersions() { VersionCondition::addPredefinedGlobalIdent("D_NoBoundsChecks"); } + if (global.params.betterC) { + VersionCondition::addPredefinedGlobalIdent("D_BetterC"); + } + registerPredefinedTargetVersions(); // `D_ObjectiveC` is added by the ddmd.objc.Supported ctor