Add GN rules for building instrumented libraries.

BUG=585127

Review-Url: https://codereview.chromium.org/2103683002
Cr-Original-Commit-Position: refs/heads/master@{#406452}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fba9bdbfc9ccc9c7909e1bd4784bcb05df9da649
This commit is contained in:
sammc 2016-07-19 18:53:39 -07:00 коммит произвёл Commit bot
Родитель d55ffe5a17
Коммит 4b2ee7d182
4 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -403,6 +403,9 @@ config("executable_config") {
if (prebuilt_instrumented_libraries_available) {
configs += [ "//third_party/instrumented_libraries:prebuilt_ldflags" ]
}
if (use_locally_built_instrumented_libraries) {
configs += [ "//third_party/instrumented_libraries:locally_built_ldflags" ]
}
}
# Shared library configs -------------------------------------------------------
@ -424,6 +427,9 @@ config("shared_library_config") {
if (prebuilt_instrumented_libraries_available) {
configs += [ "//third_party/instrumented_libraries:prebuilt_ldflags" ]
}
if (use_locally_built_instrumented_libraries) {
configs += [ "//third_party/instrumented_libraries:locally_built_ldflags" ]
}
}
# Add this config to your target to enable precompiled headers.

Просмотреть файл

@ -57,7 +57,8 @@ group("deps_no_options") {
data += [ "$clang_base_path/lib/libstdc++.so.6" ]
}
if (use_prebuilt_instrumented_libraries) {
if (use_prebuilt_instrumented_libraries ||
use_locally_built_instrumented_libraries) {
deps += [ "//third_party/instrumented_libraries:deps" ]
}
if (use_custom_libcxx) {

Просмотреть файл

@ -38,6 +38,10 @@ declare_args() {
# GCS.
use_prebuilt_instrumented_libraries = false
# Use dynamic libraries instrumented by one of the sanitizers instead of the
# standard system libraries. Set this flag to build the libraries from source.
use_locally_built_instrumented_libraries = false
# Enable building with SyzyAsan which can find certain types of memory
# errors. Only works on Windows. See
# https://github.com/google/syzygy/wiki/SyzyASanHowTo

Просмотреть файл

@ -494,6 +494,7 @@ template("gcc_toolchain") {
use_drfuzz = false
use_libfuzzer = false
use_prebuilt_instrumented_libraries = false
use_locally_built_instrumented_libraries = false
use_sanitizer_coverage = false
}