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 group("afl") { | 5 group("afl") { |
6 deps = [ | 6 deps = [ |
7 ":afl-cmin", | 7 ":afl-cmin", |
8 ":afl-fuzz", | 8 ":afl-fuzz", |
9 ":afl-showmap", | 9 ":afl-showmap", |
10 ":afl-tmin", | 10 ":afl-tmin", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 cflags = [ | 49 cflags = [ |
50 # Include flags from afl's Makefile. | 50 # Include flags from afl's Makefile. |
51 "-O3", | 51 "-O3", |
52 "-funroll-loops", | 52 "-funroll-loops", |
53 "-D_FORTIFY_SOURCE=2", | 53 "-D_FORTIFY_SOURCE=2", |
54 | 54 |
55 # These flags are necessary to build with -Werror. | 55 # These flags are necessary to build with -Werror. |
56 "-Wno-sign-compare", | 56 "-Wno-sign-compare", |
57 "-Wno-pointer-sign", | 57 "-Wno-pointer-sign", |
58 | 58 |
59 # TODO: Patch afl so the version is defined in source code and not the | |
60 # Makefile. | |
61 "-DVERSION=\"2.14b\"", | |
62 | |
63 # afl_docs copies docs/ to this location. | 59 # afl_docs copies docs/ to this location. |
64 "-DDOC_PATH=\"$root_build_dir/afl/docs/\"", | 60 "-DDOC_PATH=\"$root_build_dir/afl/docs/\"", |
65 | 61 |
66 # This flag is needed for compilation but is only used for QEMU mode which | 62 # This flag is needed for compilation but is only used for QEMU mode which |
67 # we do not use. Therefore its value is unimportant. | 63 # we do not use. Therefore its value is unimportant. |
68 "-DBIN_PATH=\"$root_build_dir\"", | 64 "-DBIN_PATH=\"$root_build_dir\"", |
69 ] | 65 ] |
70 } | 66 } |
71 | 67 |
72 copy("afl-cmin") { | 68 copy("afl-cmin") { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 113 |
118 executable("afl-showmap") { | 114 executable("afl-showmap") { |
119 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] | 115 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] |
120 configs += [ ":afl-tool" ] | 116 configs += [ ":afl-tool" ] |
121 | 117 |
122 sources = [ | 118 sources = [ |
123 "src/afl-showmap.c", | 119 "src/afl-showmap.c", |
124 ] | 120 ] |
125 sources += afl_headers | 121 sources += afl_headers |
126 } | 122 } |
OLD | NEW |