summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-10-29 11:56:39 -0400
committerBen Gamari <ben@smart-cactus.org>2021-12-11 19:41:23 -0500
commit7b3341b6246158381de1d869ce50f3eecd410af3 (patch)
tree952c3494a7fd9c5d47d9f913010f03f893297398
parent60582beecf0bd89aca4598b9bfa441c12583e0e7 (diff)
downloadhaskell-7b3341b6246158381de1d869ce50f3eecd410af3.tar.gz
configure: Hide error output from --target check
(cherry picked from commit 3d1ed315f79ab41f6bb2d3e1b0c270b8465f5790)
-rw-r--r--m4/fp_cc_supports_target.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/fp_cc_supports_target.m4 b/m4/fp_cc_supports_target.m4
index b99b5bf194..080c9f5d40 100644
--- a/m4/fp_cc_supports_target.m4
+++ b/m4/fp_cc_supports_target.m4
@@ -12,7 +12,7 @@ AC_DEFUN([FP_CC_SUPPORTS_TARGET],
AC_REQUIRE([FPTOOLS_SET_PLATFORM_VARS])
AC_MSG_CHECKING([whether $1 CC supports --target])
echo 'int main() { return 0; }' > conftest.c
- if $CC --target=$LlvmTarget -Werror conftest.c > /dev/null ; then
+ if $CC --target=$LlvmTarget -Werror conftest.c >& /dev/null ; then
CONF_CC_SUPPORTS_TARGET=YES
AC_MSG_RESULT([yes])
else