| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 source_set("libfuzzer") { | 5 source_set("libfuzzer") { |
| 6 # libfuzzer should be compiled without coverage (infinite loop in trace_cmp). | 6 # libfuzzer should be compiled without coverage (infinite loop in trace_cmp). |
| 7 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] | 7 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] |
| 8 configs += | 8 configs += |
| 9 [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] | 9 [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] |
| 10 sources = [ | 10 sources = [ |
| 11 "src/FuzzerCrossOver.cpp", | 11 "src/FuzzerCrossOver.cpp", |
| 12 "src/FuzzerDriver.cpp", | 12 "src/FuzzerDriver.cpp", |
| 13 "src/FuzzerExtFunctionsDlsym.cpp", | 13 "src/FuzzerExtFunctionsDlsym.cpp", |
| 14 "src/FuzzerExtFunctionsWeak.cpp", | 14 "src/FuzzerExtFunctionsWeak.cpp", |
| 15 "src/FuzzerExtFunctionsWeakAlias.cpp", |
| 15 "src/FuzzerIO.cpp", | 16 "src/FuzzerIO.cpp", |
| 17 "src/FuzzerIOPosix.cpp", |
| 18 "src/FuzzerIOWindows.cpp", |
| 16 "src/FuzzerLoop.cpp", | 19 "src/FuzzerLoop.cpp", |
| 17 "src/FuzzerMain.cpp", | 20 "src/FuzzerMain.cpp", |
| 21 "src/FuzzerMerge.cpp", |
| 18 "src/FuzzerMutate.cpp", | 22 "src/FuzzerMutate.cpp", |
| 19 "src/FuzzerSHA1.cpp", | 23 "src/FuzzerSHA1.cpp", |
| 20 "src/FuzzerTracePC.cpp", | 24 "src/FuzzerTracePC.cpp", |
| 21 "src/FuzzerTraceState.cpp", | 25 "src/FuzzerTraceState.cpp", |
| 22 "src/FuzzerUtil.cpp", | 26 "src/FuzzerUtil.cpp", |
| 23 "src/FuzzerUtilDarwin.cpp", | 27 "src/FuzzerUtilDarwin.cpp", |
| 24 "src/FuzzerUtilLinux.cpp", | 28 "src/FuzzerUtilLinux.cpp", |
| 29 "src/FuzzerUtilPosix.cpp", |
| 30 "src/FuzzerUtilWindows.cpp", |
| 25 ] | 31 ] |
| 26 } | 32 } |
| 27 | 33 |
| 28 source_set("afl_driver") { | 34 source_set("afl_driver") { |
| 29 # AFL should be compiled without coverage (infinite loop in trace_cmp). | 35 # AFL should be compiled without coverage (infinite loop in trace_cmp). |
| 30 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] | 36 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] |
| 31 configs += | 37 configs += |
| 32 [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] | 38 [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] |
| 33 | 39 |
| 34 sources = [ | 40 sources = [ |
| 35 "src/afl/afl_driver.cpp", | 41 "src/afl/afl_driver.cpp", |
| 36 ] | 42 ] |
| 37 } | 43 } |
| OLD | NEW |