Add no-ident for GCC when -d:release (#12454)
This commit is contained in:
parent
0a6e0a3f38
commit
4a0debfe87
2 changed files with 7 additions and 7 deletions
|
|
@ -63,8 +63,8 @@ compiler gcc:
|
||||||
result = (
|
result = (
|
||||||
name: "gcc",
|
name: "gcc",
|
||||||
objExt: "o",
|
objExt: "o",
|
||||||
optSpeed: " -O3 ",
|
optSpeed: " -O3 -fno-ident",
|
||||||
optSize: " -Os ",
|
optSize: " -Os -fno-ident",
|
||||||
compilerExe: "gcc",
|
compilerExe: "gcc",
|
||||||
cppCompiler: "g++",
|
cppCompiler: "g++",
|
||||||
compileTmpl: "-c $options $include -o $objfile $file",
|
compileTmpl: "-c $options $include -o $objfile $file",
|
||||||
|
|
@ -664,7 +664,7 @@ proc addExternalFileToCompile*(conf: ConfigRef; c: var Cfile) =
|
||||||
c.flags.incl CfileFlag.Cached
|
c.flags.incl CfileFlag.Cached
|
||||||
else:
|
else:
|
||||||
# make sure Nim keeps recompiling the external file on reruns
|
# 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)
|
discard tryRemoveFile(c.obj.string)
|
||||||
conf.toCompile.add(c)
|
conf.toCompile.add(c)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -207,15 +207,15 @@ clang.objc.options.linker = "-lobjc -lgnustep-base"
|
||||||
gcc.options.linker %= "-L $WIND_BASE/target/lib/usr/lib/ppc/PPC32/common -mrtp -fno-strict-aliasing -D_C99 -D_HAS_C9X -std=c99 -fasm -Wall -Wno-write-strings"
|
gcc.options.linker %= "-L $WIND_BASE/target/lib/usr/lib/ppc/PPC32/common -mrtp -fno-strict-aliasing -D_C99 -D_HAS_C9X -std=c99 -fasm -Wall -Wno-write-strings"
|
||||||
@end
|
@end
|
||||||
|
|
||||||
gcc.options.speed = "-O3 -fno-strict-aliasing"
|
gcc.options.speed = "-O3 -fno-strict-aliasing -fno-ident"
|
||||||
gcc.options.size = "-Os"
|
gcc.options.size = "-Os -fno-ident"
|
||||||
@if windows:
|
@if windows:
|
||||||
gcc.options.debug = "-g3 -Og -gdwarf-3"
|
gcc.options.debug = "-g3 -Og -gdwarf-3"
|
||||||
@else:
|
@else:
|
||||||
gcc.options.debug = "-g3 -Og"
|
gcc.options.debug = "-g3 -Og"
|
||||||
@end
|
@end
|
||||||
gcc.cpp.options.speed = "-O3 -fno-strict-aliasing"
|
gcc.cpp.options.speed = "-O3 -fno-strict-aliasing -fno-ident"
|
||||||
gcc.cpp.options.size = "-Os"
|
gcc.cpp.options.size = "-Os -fno-ident"
|
||||||
gcc.cpp.options.debug = "-g3 -Og"
|
gcc.cpp.options.debug = "-g3 -Og"
|
||||||
#passl = "-pg"
|
#passl = "-pg"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue