Skip to content

Commit

Permalink
gcc: Clean up configure flags
Browse files Browse the repository at this point in the history
No reason to have two conditional lists with the same condition.

(cherry picked from commit f2a33e4)
  • Loading branch information
angerman authored and Ericson2314 committed Jun 8, 2020
1 parent bf57132 commit 06e882b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkgs/development/compilers/gcc/common/configure-flags.nix
Expand Up @@ -66,6 +66,11 @@ let
"--with-gnu-ld"
"--disable-debug"
"--disable-win32-registry"
"--enable-hash-synchronization"
"--enable-libssp"
"--disable-nls"
# To keep ABI compatibility with upstream mingw-w64
"--enable-fully-dynamic-string"
] ++ lib.optionals (crossMingw && targetPlatform.isx86_32) [
# See Note [Windows Exception Handling]
"--enable-sjlj-exceptions"
Expand All @@ -90,12 +95,6 @@ let
] ++ lib.optionals (targetPlatform.libc == "musl") [
# musl at least, disable: https://git.buildroot.net/buildroot/commit/?id=873d4019f7fb00f6a80592224236b3ba7d657865
"--disable-libmpx"
] ++ lib.optionals crossMingw [
"--enable-hash-synchronization"
"--enable-libssp"
"--disable-nls"
# To keep ABI compatibility with upstream mingw-w64
"--enable-fully-dynamic-string"
] ++ lib.optional (targetPlatform.libc == "newlib") "--with-newlib"
++ lib.optional (targetPlatform.libc == "avrlibc") "--with-avrlibc"
);
Expand Down

0 comments on commit 06e882b

Please sign in to comment.