Skip to content

Commit 54b048f

Browse files
committed
Fix wrong environment test that breaks clang++ builds.
g++ builds require extra flags rejected by clang++. The bug is that the flags are actually added unconditionally. This commit fixes the condition. See #1474
1 parent d3f6382 commit 54b048f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ fi
135135
if $avx -o $avx2 -o $sse41; then
136136
case "${host_os}" in
137137
*darwin* | *-macos10*)
138-
if test -z "$CLANG"; then
139-
# When using AVX, AVX2, or SSE4.1:
138+
if test g++ = "$CXX"; then
139+
# When using AVX, AVX2, or SSE4.1 with g++:
140140
# Must tell AS to use clang integrated assembler,
141141
# instead of the GNU based system assembler.
142142
CXXFLAGS="$CXXFLAGS -Wa,-q"

0 commit comments

Comments
 (0)