mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
fixes #23114
As in https://github.com/nim-lang/Nim/pull/22074, expressions in
bracketed emit are strictly typechecked, this PR applies the same check
for symbols in asm statements in order to keep them consistent.
(cherry picked from commit 3c4246dd24)
65 lines
1.1 KiB
Nim
65 lines
1.1 KiB
Nim
# Special configuration file for the Nim project
|
|
|
|
hint[XDeclaredButNotUsed]:off
|
|
|
|
define:booting
|
|
define:nimcore
|
|
define:nimPreviewSlimSystem
|
|
define:nimPreviewCstringConversion
|
|
define:nimPreviewProcConversion
|
|
define:nimPreviewRangeDefault
|
|
define:nimPreviewNonVarDestructor
|
|
define:nimPreviewCheckedClose
|
|
define:nimPreviewAsmSemSymbol
|
|
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
|