Commit f1ac7122 authored by Anton Mitrofanov's avatar Anton Mitrofanov Committed by Henrik Gramner
Browse files

configure: Don't try to detect clang by $CC

Only check if option -Werror=unknown-warning-option is supported before adding it
parent b4d811df
......@@ -589,7 +589,7 @@ else
fi
fi
if [[ "$cc_base" = clang* ]]; then
if [ $compiler = GNU ]; then
if cc_check '' -Werror=unknown-warning-option ; then
CHECK_CFLAGS="$CHECK_CFLAGS -Werror=unknown-warning-option"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment