History

configure: Get the correct ident for clang-cl.exe

Instead of "No input file specified"

Carl Eugen Hoyos committed 6 years ago

Commit 9f1d2f41 parent 580d13e1 file · +5 −1Browse files

Unified · Split

configure+5−1
@@ -4663,7 +4663,11 @@ probe_cc(){ · 4662 unmodified lines
4663 _ld_path='-libpath:'4663 _ld_path='-libpath:'
4664 elif $_cc -nologo- 2>&1 | grep -q Microsoft || { $_cc -v 2>&1 | grep -q clang && $_cc -? > /dev/null 2>&1; }; then4664 elif $_cc -nologo- 2>&1 | grep -q Microsoft || { $_cc -v 2>&1 | grep -q clang && $_cc -? > /dev/null 2>&1; }; then
4665 _type=msvc4665 _type=msvc
4666 _ident=$($_cc 2>&1 | head -n1 | tr -d '\r')4666 if $_cc -nologo- 2>&1 | grep -q Microsoft; then
4667 _ident=$($_cc 2>&1 | head -n1 | tr -d '\r')
4668 else
4669 _ident=$($_cc --version 2>/dev/null | head -n1 | tr -d '\r')
4670 fi
4667 _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)'4671 _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)'
4668 _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs'4672 _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs'
4669 _cflags_speed="-O2"4673 _cflags_speed="-O2"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t