diff options
author | Michael Maltese <michaeljosephmaltese@gmail.com> | 2017-01-24 02:58:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-06 18:12:06 (GMT) |
commit | 72ed051b12d983d298b9447d3464a38f5e0f918c (patch) | |
tree | f9eeb4ee2a05d9c9785d674cfe259cf0fd46f21f /Copyright.txt | |
parent | 0f4dae0a4da92af5079eb730443ec188b3b46f8e (diff) | |
download | CMake-72ed051b12d983d298b9447d3464a38f5e0f918c.zip CMake-72ed051b12d983d298b9447d3464a38f5e0f918c.tar.gz CMake-72ed051b12d983d298b9447d3464a38f5e0f918c.tar.bz2 |
CMakeDetermineCompilerId: check with and without user-specified flags
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
Diffstat (limited to 'Copyright.txt')
0 files changed, 0 insertions, 0 deletions