Skip to content
  • Michael Maltese's avatar
    CMakeDetermineCompilerId: check with and without user-specified flags · 72ed051b
    Michael Maltese authored and Brad King's avatar Brad King committed
    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