Add no-ident for GCC when -d:release (#12454)

This commit is contained in:
Juan Carlos 2019-10-18 09:13:55 -03:00 • committed by Andreas Rumpf
commit 4a0debfe87
2 changed files with 7 additions and 7 deletions

View file

@ -63,8 +63,8 @@ compiler gcc:
result = (
name: "gcc",
objExt: "o",
optSpeed: " -O3 ",
optSize: " -Os ",
optSpeed: " -O3 -fno-ident",
optSize: " -Os -fno-ident",
compilerExe: "gcc",
cppCompiler: "g++",
compileTmpl: "-c $options $include -o $objfile $file",
@ -664,7 +664,7 @@ proc addExternalFileToCompile*(conf: ConfigRef; c: var Cfile) =
c.flags.incl CfileFlag.Cached
else:
# make sure Nim keeps recompiling the external file on reruns
# if compilation is not successful
# if compilation is not successful
discard tryRemoveFile(c.obj.string)
conf.toCompile.add(c)