make fullpaths the default in error messages and stack traces for mor… (#11385)
* make fullpaths the default in error messages and stack traces for more convenient development * split up -d:release into -d:release and -d:danger flags * workaround a Nim config parser bug * fixes an old nim config parser bug * make megatest green again * make nimpretty tests work again * make nimsuggest green
This commit is contained in:
parent
fc4f0808c4
commit
7215341190
15 changed files with 41 additions and 27 deletions
|
|
@ -52,7 +52,7 @@ path="$lib/pure"
|
|||
@end
|
||||
@end
|
||||
|
||||
@if release or quick:
|
||||
@if danger or quick:
|
||||
obj_checks:off
|
||||
field_checks:off
|
||||
range_checks:off
|
||||
|
|
@ -69,10 +69,19 @@ path="$lib/pure"
|
|||
@end
|
||||
@end
|
||||
|
||||
@if release:
|
||||
@if release or danger:
|
||||
stacktrace:off
|
||||
linetrace:off
|
||||
debugger:off
|
||||
line_dir:off
|
||||
opt:speed
|
||||
@end
|
||||
|
||||
@if false: # not danger: # this does not work yet.
|
||||
clang.options.always %= "${clang.options.always} -fsanitize=null -fsanitize-undefined-trap-on-error"
|
||||
gcc.options.always %= "${gcc.options.always} -fsanitize=null -fsanitize-undefined-trap-on-error"
|
||||
@end
|
||||
|
||||
@if unix and mingw:
|
||||
# Cross compile for Windows from Linux/OSX using MinGW
|
||||
os = windows
|
||||
|
|
@ -200,13 +209,13 @@ clang.objc.options.linker = "-lobjc -lgnustep-base"
|
|||
gcc.options.speed = "-O3 -fno-strict-aliasing"
|
||||
gcc.options.size = "-Os"
|
||||
@if windows:
|
||||
gcc.options.debug = "-g3 -O0 -gdwarf-3"
|
||||
gcc.options.debug = "-g3 -Og -gdwarf-3"
|
||||
@else:
|
||||
gcc.options.debug = "-g3 -O0"
|
||||
gcc.options.debug = "-g3 -Og"
|
||||
@end
|
||||
gcc.cpp.options.speed = "-O3 -fno-strict-aliasing"
|
||||
gcc.cpp.options.size = "-Os"
|
||||
gcc.cpp.options.debug = "-g3 -O0"
|
||||
gcc.cpp.options.debug = "-g3 -Og"
|
||||
#passl = "-pg"
|
||||
|
||||
# Configuration for the LLVM GCC compiler:
|
||||
|
|
@ -224,13 +233,13 @@ clang.options.size = "-Os"
|
|||
|
||||
@if windows:
|
||||
clang_cl.cpp.options.always %= "${clang_cl.options.always} /EHsc"
|
||||
@if not release:
|
||||
@if not release and not safety and not danger:
|
||||
clang_cl.options.linker = "/Z7"
|
||||
clang_cl.cpp.options.linker = "/Z7"
|
||||
@end
|
||||
clang.options.debug = "-g -gcodeview"
|
||||
clang.cpp.options.debug = "-g -gcodeview"
|
||||
@if not release:
|
||||
@if not release and not safety and not danger:
|
||||
clang.options.linker = "-g"
|
||||
clang.cpp.options.linker = "-g"
|
||||
@end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue