diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2023-05-08 13:53:32 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 18:53:32 +0200 |
commit | 4ee70165f1f0646df34ae35b7c98bd8b7d1d6d5d (patch) | |
tree | b0ea45c2551902f0bea45fb6f612b467db2b1bde /config | |
parent | ec3bca8fab723563bc9fb99ce9d5161652ce6945 (diff) | |
download | Nim-4ee70165f1f0646df34ae35b7c98bd8b7d1d6d5d.tar.gz |
Add build-id=none for GCC when build for Release (#21808)
* Add build-id=none to GCC/Clang, unneeded metadata in binaries * Add build-id=none to GCC/Clang, unneeded metadata in binaries * Add build-id=none to Clang * Fix * Fix * Add build-id=none to GCC
Diffstat (limited to 'config')
-rw-r--r-- | config/nim.cfg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/nim.cfg b/config/nim.cfg index 13665936b..cc27d5a3d 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -364,3 +364,9 @@ tcc.options.always = "-w" clang.options.linker %= "${clang.options.linker} -s" clang.cpp.options.linker %= "${clang.cpp.options.linker} -s" @end + +# Linker: Skip "Build-ID metadata strings" in binaries when build for release. +@if release or danger: + gcc.options.linker %= "${gcc.options.linker} -Wl,--build-id=none" + gcc.cpp.options.linker %= "${gcc.cpp.options.linker} -Wl,--build-id=none" +@end |