diff options
Diffstat (limited to 'compiler/options.nim')
-rw-r--r-- | compiler/options.nim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index 6303224a2..75eec4756 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -135,6 +135,12 @@ type ## which itself requires `nimble install libffi`, see #10150 ## Note: this feature can't be localized with {.push.} + LegacyFeature* = enum + allowSemcheckedAstModification, + ## Allows to modify a NimNode where the type has already been + ## flaged with nfSem. If you actually do this, it will cause + ## bugs. + SymbolFilesOption* = enum disabledSf, writeOnlySf, readOnlySf, v2Sf @@ -196,6 +202,7 @@ type cppDefines*: HashSet[string] # (*) headerFile*: string features*: set[Feature] + legacyFeatures*: set[LegacyFeature] arguments*: string ## the arguments to be passed to the program that ## should be run ideCmd*: IdeCmd @@ -315,7 +322,7 @@ proc newConfigRef*(): ConfigRef = m: initMsgConfig(), evalExpr: "", cppDefines: initHashSet[string](), - headerFile: "", features: {}, foreignPackageNotes: {hintProcessing, warnUnknownMagic, + headerFile: "", features: {}, legacyFeatures: {}, foreignPackageNotes: {hintProcessing, warnUnknownMagic, hintQuitCalled, hintExecuting}, notes: NotesVerbosity[1], mainPackageNotes: NotesVerbosity[1], configVars: newStringTable(modeStyleInsensitive), |