summary refs log tree commit diff stats
path: root/compiler/nim.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nim.cfg')
-rw-r--r--compiler/nim.cfg63
1 files changed, 63 insertions, 0 deletions
diff --git a/compiler/nim.cfg b/compiler/nim.cfg
new file mode 100644
index 000000000..ce5a22ad2
--- /dev/null
+++ b/compiler/nim.cfg
@@ -0,0 +1,63 @@
+# Special configuration file for the Nim project
+
+hint[XDeclaredButNotUsed]:off
+
+define:booting
+define:nimcore
+define:nimPreviewFloatRoundtrip
+define:nimPreviewSlimSystem
+define:nimPreviewCstringConversion
+define:nimPreviewProcConversion
+define:nimPreviewRangeDefault
+define:nimPreviewNonVarDestructor
+threads:off
+
+#import:"$projectpath/testability"
+
+@if windows:
+  cincludes: "$lib/wrappers/libffi/common"
+@end
+
+define:useStdoutAsStdmsg
+
+@if nimHasStyleChecks:
+  styleCheck:error
+@end
+
+
+#define:useNodeIds
+#gc:markAndSweep
+
+@if nimHasWarningObservableStores:
+  warning[ObservableStores]:off
+@end
+
+
+@if nimHasWarningAsError:
+  warningAsError[GcUnsafe2]:on
+@end
+
+@if nimHasWarnUnnamedBreak:
+  warningAserror[UnnamedBreak]:on
+@end
+
+@if nimHasWarnBareExcept:
+  warning[BareExcept]:on
+  warningAserror[BareExcept]:on
+@end
+
+
+@if nimUseStrictDefs:
+  experimental:strictDefs
+  warningAsError[Uninit]:on
+  warningAsError[ProveInit]:on
+@end
+
+@if nimHasWarnStdPrefix:
+  warning[StdPrefix]:on
+  warningAsError[StdPrefix]:on
+@end
+
+@if nimHasVtables:
+  experimental:vtables
+@end