summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config/nim.cfg6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 656885e0c..6af5b0fd7 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -366,6 +366,8 @@ tcc.options.always = "-w"
 
 # 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"
+  @if not macosx:
+    gcc.options.linker %= "${gcc.options.linker} -Wl,--build-id=none"
+    gcc.cpp.options.linker %= "${gcc.cpp.options.linker} -Wl,--build-id=none"
+  @end
 @end