Closed
Description
configure.ac contains multiple checks of this kind:
case $CC in
When paths contain "clang"/"gcc"/"icc", they might be part of $CC
for example because of the "--sysroot" parameter. That could cause
judgement error about clang/gcc/icc compilers. e.g.
when "icc" is containded in working path, below errors are reported when compiling python3:
x86_64-wrs-linux-gcc: error: strict: No such file or directory
x86_64-wrs-linux-gcc: error: unrecognized command line option '-fp-model'
Linked PRs
- gh-96398: Improve accuracy of compiler checks in configure.ac #117815
- gh-96398: Detect emcc and mpicc in compiler names in configure #117819
- gh-96398: Detect GCC compatible compilers in configure #117825
- gh-96398: Purge Emscripten code from configure.ac #117836
- gh-96398: Fix mpicc check in configure.ac #117857