File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,11 @@ case "${host_os}" in
112
112
esac
113
113
114
114
WERROR=-Werror
115
- # The test code used by AX_CHECK_COMPILE_FLAG uses an empty statement.
116
- # clang++-8 can emit a warning for that which must be disabled.
117
- AX_CHECK_COMPILE_FLAG([-Wno-extra-semi-stmt], [WERROR= " $WERROR -Wno-extra-semi-stmt" ])
118
- # The test code used by AX_CHECK_COMPILE_FLAG uses macros which are unused.
119
- # That must not break the check, so disable a related warning if necessary.
120
- AX_CHECK_COMPILE_FLAG([-Wno-unused-macros], [WERROR= " $WERROR -Wno-unused-macros" ])
115
+ # The test code used by AX_CHECK_COMPILE_FLAG uses an empty statement
116
+ # and unused macros which must not raise a compiler error, but it must
117
+ # be an error if flags like -avx are ignored on ARM and other
118
+ # architectures because they are unsupported.
119
+ AX_CHECK_COMPILE_FLAG([-Werror= unused-command-line-argument], [WERROR= -Werror= unused-command-line-argument])
121
120
122
121
# # Checks for supported compiler options.
123
122
You can’t perform that action at this time.
0 commit comments