| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
| 7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
| 8 | 8 |
| 9 # Contains the dependencies needed for sanitizers to link into executables and | 9 # Contains the dependencies needed for sanitizers to link into executables and |
| 10 # shared_libraries. Unconditionally depend upon this target as it is empty if | 10 # shared_libraries. Unconditionally depend upon this target as it is empty if |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 if (use_prebuilt_instrumented_libraries) { | 26 if (use_prebuilt_instrumented_libraries) { |
| 27 deps += [ "//third_party/instrumented_libraries:deps" ] | 27 deps += [ "//third_party/instrumented_libraries:deps" ] |
| 28 } | 28 } |
| 29 if (use_custom_libcxx) { | 29 if (use_custom_libcxx) { |
| 30 deps += [ "//buildtools/third_party/libc++:libcxx_proxy" ] | 30 deps += [ "//buildtools/third_party/libc++:libcxx_proxy" ] |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 config("sanitizer_options_link_helper") { | 35 config("sanitizer_options_link_helper") { |
| 36 if (!is_win) { | 36 if (is_mac) { |
| 37 ldflags = [ "-Wl,-U,_sanitizer_options_link_helper" ] |
| 38 } else if (!is_win) { |
| 37 ldflags = [ "-Wl,-u_sanitizer_options_link_helper" ] | 39 ldflags = [ "-Wl,-u_sanitizer_options_link_helper" ] |
| 38 } | 40 } |
| 39 } | 41 } |
| 40 | 42 |
| 41 source_set("options_sources") { | 43 source_set("options_sources") { |
| 42 visibility = [ | 44 visibility = [ |
| 43 ":deps", | 45 ":deps", |
| 44 "//:gn_visibility", | 46 "//:gn_visibility", |
| 45 ] | 47 ] |
| 46 sources = [ | 48 sources = [ |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 if (target_cpu == "arm") { | 308 if (target_cpu == "arm") { |
| 307 # http://crbug.com/517105 | 309 # http://crbug.com/517105 |
| 308 cflags += [ | 310 cflags += [ |
| 309 "-mllvm", | 311 "-mllvm", |
| 310 "-sanitizer-coverage-block-threshold=0", | 312 "-sanitizer-coverage-block-threshold=0", |
| 311 ] | 313 ] |
| 312 } | 314 } |
| 313 defines = [ "SANITIZER_COVERAGE" ] | 315 defines = [ "SANITIZER_COVERAGE" ] |
| 314 } | 316 } |
| 315 } | 317 } |
| OLD | NEW |