Skip to content

Commit ff3b316

Browse files
committed
Respect dontStrip
1 parent b94ea34 commit ff3b316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/comp-builder.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ let
164164
"--with-ar=${stdenv.cc.bintools.targetPrefix}ar"
165165
"--with-strip=${stdenv.cc.bintools.targetPrefix}strip"
166166
# other flags
167-
"--enable-executable-stripping"
168-
"--enable-library-stripping"
167+
(if dontStrip then "--disable-executable-stripping" else "--enable-executable-stripping")
168+
(if dontStrip then "--disable-library-stripping" else "--enable-library-stripping")
169169
] ++ lib.optional doHaddock' "--docdir=${docdir "$doc"}"
170170
++ lib.optional (deadCodeElimination && stdenv.hostPlatform.isLinux) "--enable-split-sections"
171171
++ lib.optional (static) "--enable-static"

0 commit comments

Comments
 (0)