Chromium Code Reviews| Index: third_party/afl/BUILD.gn |
| diff --git a/third_party/afl/BUILD.gn b/third_party/afl/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..33101c4cd7902837d05e23f1cae21ec9cd2b8712 |
| --- /dev/null |
| +++ b/third_party/afl/BUILD.gn |
| @@ -0,0 +1,27 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +source_set("afl_runtime") { |
|
inferno
2016/06/21 14:53:18
s/afl_runtime/afl
|
| + # AFL needs this flag to be built with -Werror. This is because it uses u8* |
| + # and char* types interchangeably in its source code. The AFL Makefiles use |
| + # this flag. |
| + cflags = [ "-Wno-pointer-sign" ] |
|
inferno
2016/06/21 14:53:18
I think you meant += instead of =
|
| + |
| + # These functions should not be compiled with sanitizers since they |
|
inferno
2016/06/21 14:53:18
move line 11-12 to before line 14 just like line 1
|
| + # are used by the sanitizers. |
| + configs -= [ |
| + "//build/config/sanitizers:default_sanitizer_flags", |
| + |
| + # Every function in this library should have "default" visibility. |
| + # Thus we turn off flags which make visibility "hidden" for functions |
| + # that do not specify visibility. |
| + # The functions in this library will not conflict with others elsewhere |
| + # because they begin with a double underscore and/or are static. |
| + "//build/config/gcc:symbol_visibility_hidden", |
| + ] |
| + |
| + sources = [ |
| + "src/llvm_mode/afl-llvm-rt.o.c", |
| + ] |
| +} |