Commit 863ee068 authored by Martin Storsjö's avatar Martin Storsjö

configure: Use the right local variable in the MSVC and ICL probes

$cc is the compiler requested as main target compiler, while $_cc
is the actual tool tested in the probe function right now (which
can also be e.g. the host compiler).
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 709e1c91
...@@ -2972,7 +2972,7 @@ probe_cc(){ ...@@ -2972,7 +2972,7 @@ probe_cc(){
_flags_filter=armasm_flags _flags_filter=armasm_flags
elif $_cc 2>&1 | grep -q Microsoft; then elif $_cc 2>&1 | grep -q Microsoft; then
_type=msvc _type=msvc
_ident=$($cc 2>&1 | head -n1) _ident=$($_cc 2>&1 | head -n1)
_DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)' _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)'
_DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs' _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs'
_cflags_speed="-O2" _cflags_speed="-O2"
...@@ -2994,7 +2994,7 @@ probe_cc(){ ...@@ -2994,7 +2994,7 @@ probe_cc(){
fi fi
elif $_cc 2>&1 | grep -q Intel; then elif $_cc 2>&1 | grep -q Intel; then
_type=icl _type=icl
_ident=$($cc 2>&1 | head -n1) _ident=$($_cc 2>&1 | head -n1)
_depflags='-QMMD -QMF$(@:.o=.d) -QMT$@' _depflags='-QMMD -QMF$(@:.o=.d) -QMT$@'
# Not only is O3 broken on 13.x+ but it is slower on all previous # Not only is O3 broken on 13.x+ but it is slower on all previous
# versions (tested) as well. # versions (tested) as well.
......
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