• Michael Maltese's avatar
    CMakeDetermineCompilerId: check with and without user-specified flags · 72ed051b
    Michael Maltese authored
    Clang may raise an error when passed a `-march=` option that doesn't
    correspond to the current target triple.  CMake cannot pass the target
    triple when determining the compiler id because it doesn't know how yet,
    but it does pass along user-specified flags.  This breaks when those
    user-specified flags include `-march=`.  Fix this use case by also
    trying to find the compiler id without the user-specified flags.
    
    Fixes: #16587
    72ed051b
Name
Last commit
Last update
Auxiliary Loading commit data...
Help Loading commit data...
Licenses Loading commit data...
Modules Loading commit data...
Packaging Loading commit data...
Source Loading commit data...
Templates Loading commit data...
Tests Loading commit data...
Utilities Loading commit data...
.clang-format Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hooks-config Loading commit data...
CMakeCPack.cmake Loading commit data...
CMakeCPackOptions.cmake.in Loading commit data...
CMakeGraphVizOptions.cmake Loading commit data...
CMakeLists.txt Loading commit data...
CMakeLogo.gif Loading commit data...
CONTRIBUTING.rst Loading commit data...
CTestConfig.cmake Loading commit data...
CTestCustom.cmake.in Loading commit data...
CompileFlags.cmake Loading commit data...
Copyright.txt Loading commit data...
DartConfig.cmake Loading commit data...
README.rst Loading commit data...
bootstrap Loading commit data...
cmake_uninstall.cmake.in Loading commit data...
configure Loading commit data...
doxygen.config Loading commit data...