Lines Matching +full:- +full:fno +full:- +full:sanitize
7 # http://www.apache.org/licenses/LICENSE-2.0
47 set(CMAKE_REQUIRED_FLAGS "-fsanitize=address")
48 check_cxx_compiler_flag(-fsanitize=address LIB_PROTO_MUTATOR_HAS_SANITIZE_ADDRESS)
49 check_cxx_compiler_flag("-fsanitize=address -fsanitize-address-use-after-scope"
53 set(CMAKE_REQUIRED_FLAGS "-fsanitize-coverage=0")
54 check_cxx_compiler_flag(-fsanitize-coverage= LIB_PROTO_MUTATOR_HAS_NO_COVERAGE)
57 set(CMAKE_REQUIRED_FLAGS "-fsanitize=fuzzer-no-link")
58 check_cxx_compiler_flag(-fsanitize=fuzzer-no-link LIB_PROTO_MUTATOR_HAS_SANITIZE_FUZZER)
61 set(CMAKE_REQUIRED_FLAGS "-fno-sanitize=fuzzer")
62 check_cxx_compiler_flag(-fno-sanitize=fuzzer LIB_PROTO_MUTATOR_HAS_NO_SANITIZE_FUZZER)
65 check_cxx_compiler_flag(-Wstring-conversion LIB_PROTO_MUTATOR_HAS_WSTRING_CONVERSION)
67 set(EXTRA_FLAGS "-fno-exceptions -Werror -Wall")
69 set(EXTRA_FLAGS "${EXTRA_FLAGS} -Wstring-conversion")
74 set(EXTRA_FLAGS "${EXTRA_FLAGS} -fsanitize=address")
76 set(EXTRA_FLAGS "${EXTRA_FLAGS} -fsanitize-address-use-after-scope")
84 set(FUZZING_FLAGS "-fsanitize=fuzzer-no-link")
85 set(FUZZING_FLAGS_BINARY "-fsanitize=fuzzer")
88 set(NO_FUZZING_FLAGS "-fno-sanitize=fuzzer")
92 set(NO_FUZZING_FLAGS "${NO_FUZZING_FLAGS} -fsanitize-coverage=0")
98 set(PROTOBUF_CFLAGS "${CMAKE_C_FLAGS} ${NO_FUZZING_FLAGS} -w")
99 set(PROTOBUF_CXXFLAGS "${CMAKE_CXX_FLAGS} ${NO_FUZZING_FLAGS} -w")
101 set(PROTOBUF_CFLAGS "${PROTOBUF_CFLAGS} -pthread")
102 set(PROTOBUF_CXXFLAGS "${PROTOBUF_CXXFLAGS} -pthread")
121 … COMMAND ${CMAKE_CTEST_COMMAND} -j${LIB_PROTO_MUTATOR_CTEST_JOBS} --output-on-failure)