also use "-fno-omit-frame-pointer" on Windows (#584)

now that we no longer use the buggy gcc-8.1.0 in CI
This commit is contained in:
Ștefan Talpalaru 2021-04-14 15:03:13 +02:00 committed by GitHub
parent 8211db1ea8
commit 295c1409f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -34,12 +34,8 @@ else:
# omitting frame pointers in nim breaks the GC # omitting frame pointers in nim breaks the GC
# https://github.com/nim-lang/Nim/issues/10625 # https://github.com/nim-lang/Nim/issues/10625
if not defined(windows): switch("passC", "-fno-omit-frame-pointer")
# ...except on windows where the option crashes GCC: switch("passL", "-fno-omit-frame-pointer")
# https://sourceforge.net/p/mingw-w64/bugs/880/
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86593
switch("passC", "-fno-omit-frame-pointer")
switch("passL", "-fno-omit-frame-pointer")
--threads:on --threads:on
--opt:speed --opt:speed