summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-06-05 22:59:47 +0300
committerMartin Storsjö <martin@martin.st>2015-05-02 22:09:09 +0300
commit863ee06809b215895ee20cbc557eeceb904cf770 (patch)
tree9ef818388c8600d4ca5a645e44b8c8c02238a2b2 /configure
parent709e1c91ea7a5bbf2b9a104642572ca7616b224f (diff)
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: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index c5ea29c0d1..6bfd30435c 100755
--- a/configure
+++ b/configure
@@ -2972,7 +2972,7 @@ probe_cc(){
_flags_filter=armasm_flags
elif $_cc 2>&1 | grep -q Microsoft; then
_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)'
_DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs'
_cflags_speed="-O2"
@@ -2994,7 +2994,7 @@ probe_cc(){
fi
elif $_cc 2>&1 | grep -q Intel; then
_type=icl
- _ident=$($cc 2>&1 | head -n1)
+ _ident=$($_cc 2>&1 | head -n1)
_depflags='-QMMD -QMF$(@:.o=.d) -QMT$@'
# Not only is O3 broken on 13.x+ but it is slower on all previous
# versions (tested) as well.