Merge topic 'fix-clang-flag-check-issue-12394'
ed6be50
Fix CHECK_(C|CXX)_COMPILER_FLAG for Clang (#12394)
This commit is contained in:
commit
bdedae4b95
|
@ -30,6 +30,7 @@ MACRO (CHECK_C_COMPILER_FLAG _FLAG _RESULT)
|
||||||
FAIL_REGEX "warning: command line option .* is valid for .* but not for C"
|
FAIL_REGEX "warning: command line option .* is valid for .* but not for C"
|
||||||
# Apple gcc
|
# Apple gcc
|
||||||
FAIL_REGEX "unrecognized .*option" # GNU
|
FAIL_REGEX "unrecognized .*option" # GNU
|
||||||
|
FAIL_REGEX "unknown .*option" # Clang
|
||||||
FAIL_REGEX "ignoring unknown option" # MSVC
|
FAIL_REGEX "ignoring unknown option" # MSVC
|
||||||
FAIL_REGEX "warning D9002" # MSVC, any lang
|
FAIL_REGEX "warning D9002" # MSVC, any lang
|
||||||
FAIL_REGEX "[Uu]nknown option" # HP
|
FAIL_REGEX "[Uu]nknown option" # HP
|
||||||
|
|
|
@ -28,6 +28,7 @@ MACRO (CHECK_CXX_COMPILER_FLAG _FLAG _RESULT)
|
||||||
CHECK_CXX_SOURCE_COMPILES("int main() { return 0;}" ${_RESULT}
|
CHECK_CXX_SOURCE_COMPILES("int main() { return 0;}" ${_RESULT}
|
||||||
# Some compilers do not fail with a bad flag
|
# Some compilers do not fail with a bad flag
|
||||||
FAIL_REGEX "unrecognized .*option" # GNU
|
FAIL_REGEX "unrecognized .*option" # GNU
|
||||||
|
FAIL_REGEX "unknown .*option" # Clang
|
||||||
FAIL_REGEX "ignoring unknown option" # MSVC
|
FAIL_REGEX "ignoring unknown option" # MSVC
|
||||||
FAIL_REGEX "warning D9002" # MSVC, any lang
|
FAIL_REGEX "warning D9002" # MSVC, any lang
|
||||||
FAIL_REGEX "[Uu]nknown option" # HP
|
FAIL_REGEX "[Uu]nknown option" # HP
|
||||||
|
|
Loading…
Reference in New Issue