Instead of "No input file specified"
Unified · Split
| @@ -4663,7 +4663,11 @@ probe_cc(){ · 4662 unmodified lines | ||
| 4663 | 4663 | _ld_path='-libpath:' |
| 4664 | 4664 | elif $_cc -nologo- 2>&1 | grep -q Microsoft || { $_cc -v 2>&1 | grep -q clang && $_cc -? > /dev/null 2>&1; }; then |
| 4665 | 4665 | _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 | 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 | 4672 | _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs' |
| 4669 | 4673 | _cflags_speed="-O2" |