summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-07-15 17:53:00 -0400
committerBen Gamari <ben@smart-cactus.org>2022-07-15 17:57:26 -0400
commit582bde433879042a42ad8a1862b1c46d6832b00b (patch)
tree09cdcdf95dc5e2e4d5ff9dda7c633f4ee962d20e
parentdcf8b30a1a5f802b1d8a22ea74499e2896a6ff16 (diff)
downloadhaskell-wip/T21669.tar.gz
configure: Don't override Windows CXXFLAGSwip/T21669
At some point we used the clang distribution from msys2's `MINGW64` environment for our Windows toolchain. This defaulted to using libgcc and libstdc++ for its runtime library. However, we found for a variety of reasons that compiler-rt, libunwind, and libc++ were more reliable, consequently we explicitly overrode the CXXFLAGS to use these. However, since then we have switched to use the `CLANG64` packaging, which default to these already. Consequently we can drop these arguments, silencing some redundant argument warnings from clang. Fixes #21669.
-rw-r--r--m4/fp_setup_windows_toolchain.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/fp_setup_windows_toolchain.m4 b/m4/fp_setup_windows_toolchain.m4
index 79a6ac6531..15b85b2bb2 100644
--- a/m4/fp_setup_windows_toolchain.m4
+++ b/m4/fp_setup_windows_toolchain.m4
@@ -86,7 +86,7 @@ AC_DEFUN([FP_SETUP_WINDOWS_TOOLCHAIN],[
CONF_CC_OPTS_STAGE1="$cflags"
CONF_CC_OPTS_STAGE2="$cflags"
- cxxflags="--rtlib=compiler-rt --unwindlib=libunwind --stdlib=libc++"
+ cxxflags=""
CXXFLAGS="$cxxflags"
CONF_CXX_OPTS_STAGE1="$cxxflags"
CONF_CXX_OPTS_STAGE2="$cxxflags"