• 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
CMakeDetermineCompilerId.cmake 27.8 KB