Home | History | Annotate | Download | only in src

Lines Matching full:clang

3 # Report AppleClang separately from Clang. Their version numbers are different.
45 if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
46 set(CLANG 1)
49 if(CMAKE_COMPILER_IS_GNUCXX OR CLANG)
50 # Note clang-cl is odd and sets both CLANG and MSVC. We base our configuration
51 # primarily on our normal Clang one.
54 # clang-cl sets different default warnings than clang. It also treats -Wall
58 # googletest suppresses warning C4996 via a pragma, but clang-cl does not
65 if(CLANG)
73 if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
75 # Clang's -Wtautological-constant-compare is far too aggressive and does not
79 # Note "Clang" and "AppleClang" version differently, so we check for an
85 if(CLANG OR NOT "7.0.0" VERSION_GREATER CMAKE_C_COMPILER_VERSION)
103 # and using the wrong one is an error. In Clang, -Wmissing-prototypes is the
107 # https://clang.llvm.org/docs/DiagnosticsReference.html#wmissing-prototypes
108 # https://clang.llvm.org/docs/DiagnosticsReference.html#wmissing-declarations
109 if(CLANG)
190 CLANG)
196 if ((CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.8.99") OR CLANG)
209 if(NOT CLANG)
210 message(FATAL_ERROR "You need to build with Clang for fuzzing to work")
237 if(NOT CLANG)
238 message(FATAL_ERROR "Cannot enable MSAN unless using Clang")
251 if(NOT CLANG)
252 message(FATAL_ERROR "Cannot enable ASAN unless using Clang")
261 if(NOT CLANG)
262 message(FATAL_ERROR "Cannot enable CFI unless using Clang")
268 # We use Chromium's copy of clang, which requires -fuse-ld=lld if building
352 # but clang defaults to 64-bit builds on OS X unless otherwise told.
353 # Set ARCH to x86_64 so clang and CMake agree. This is fixed in CMake 3.
390 # without -fsanitize-coverage options or clang crashes.