diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-06-05 08:02:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 08:02:54 +0200 |
commit | 721534119000c2bd53cc72b531726a6104381222 (patch) | |
tree | b03f8b734bfd4526ce719cd065e94d0f8e34a171 /config | |
parent | fc4f0808c45ab8e72e2c2e3792e4756d9380fe8c (diff) | |
download | Nim-721534119000c2bd53cc72b531726a6104381222.tar.gz |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/nim.cfg | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/config/nim.cfg b/config/nim.cfg index db0336f89..89906a47d 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -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 |