diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-18 11:45:44 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-18 18:46:09 +0000 |
commit | 5e5e2019ee09fb0901f35948f570baff8a884adb (patch) | |
tree | dbf3190f2e5464f027ea949ff6d6c892da7bbb29 /cmake | |
parent | fca7b3f4f88652857dc9e416b95cf1bc260a8444 (diff) |
Another message from Clang for unknown -f and -m flags.
For -f and -m flags that don't apply to the target architecture(?),
Clang doesn't fail but does print a warning "argument unused during
compilation: '-{flag}'". Catch that and treat it as a failure
indication, so we don't use that flag.
Change-Id: I65948ada41fa44fb62f9a2b8b320f137a5902b8f
Reviewed-on: https://code.wireshark.org/review/2399
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/CheckCCompilerFlag.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/CheckCCompilerFlag.cmake b/cmake/modules/CheckCCompilerFlag.cmake index b635150071..2a93138b43 100644 --- a/cmake/modules/CheckCCompilerFlag.cmake +++ b/cmake/modules/CheckCCompilerFlag.cmake @@ -37,6 +37,7 @@ macro (CHECK_C_COMPILER_FLAG _FLAG _RESULT) FAIL_REGEX "command line option .* is valid for .* but not for C" # GNU FAIL_REGEX "unrecognized .*option" # GNU FAIL_REGEX "unknown .*option" # Clang + FAIL_REGEX "argument unused during compilation: " # Clang FAIL_REGEX "ignoring unknown option" # MSVC FAIL_REGEX "warning D9002" # MSVC, any lang FAIL_REGEX "option.*not supported" # Intel |