| 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/FuzzerExtFunctionsWeakAlias.cpp", | 
|  16     "src/FuzzerIO.cpp", |  16     "src/FuzzerIO.cpp", | 
|  17     "src/FuzzerIOPosix.cpp", |  17     "src/FuzzerIOPosix.cpp", | 
|  18     "src/FuzzerIOWindows.cpp", |  18     "src/FuzzerIOWindows.cpp", | 
|  19     "src/FuzzerLoop.cpp", |  19     "src/FuzzerLoop.cpp", | 
|  20     "src/FuzzerMain.cpp", |  20     "src/FuzzerMain.cpp", | 
|  21     "src/FuzzerMerge.cpp", |  21     "src/FuzzerMerge.cpp", | 
|  22     "src/FuzzerMutate.cpp", |  22     "src/FuzzerMutate.cpp", | 
|  23     "src/FuzzerSHA1.cpp", |  23     "src/FuzzerSHA1.cpp", | 
 |  24     "src/FuzzerShmemPosix.cpp", | 
|  24     "src/FuzzerTracePC.cpp", |  25     "src/FuzzerTracePC.cpp", | 
|  25     "src/FuzzerTraceState.cpp", |  26     "src/FuzzerTraceState.cpp", | 
|  26     "src/FuzzerUtil.cpp", |  27     "src/FuzzerUtil.cpp", | 
|  27     "src/FuzzerUtilDarwin.cpp", |  28     "src/FuzzerUtilDarwin.cpp", | 
|  28     "src/FuzzerUtilLinux.cpp", |  29     "src/FuzzerUtilLinux.cpp", | 
|  29     "src/FuzzerUtilPosix.cpp", |  30     "src/FuzzerUtilPosix.cpp", | 
|  30     "src/FuzzerUtilWindows.cpp", |  31     "src/FuzzerUtilWindows.cpp", | 
|  31   ] |  32   ] | 
|  32 } |  33 } | 
|  33  |  34  | 
|  34 source_set("afl_driver") { |  35 source_set("afl_driver") { | 
|  35   # AFL should be compiled without coverage (infinite loop in trace_cmp). |  36   # AFL should be compiled without coverage (infinite loop in trace_cmp). | 
|  36   configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] |  37   configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] | 
|  37   configs += |  38   configs += | 
|  38       [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] |  39       [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] | 
|  39  |  40  | 
|  40   sources = [ |  41   sources = [ | 
|  41     "src/afl/afl_driver.cpp", |  42     "src/afl/afl_driver.cpp", | 
|  42   ] |  43   ] | 
|  43 } |  44 } | 
| OLD | NEW |