blob: 21bd6c2528713b5cf9aabb05fd954d1a731f9cc7 [file] [log] [blame]
# Copyright 2019 The Fuchsia 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("sanitizers") {
configs -= [ "$zx/public/gn/config:user" ]
configs += [ "$zx/third_party/ulib/musl:musl_config" ]
sources = [
"__asan_early_init.c",
"asan-stubs.c",
"hooks.c",
"log.c",
]
# There is no '#if __has_feature(coverage)', so this file has to be
# excluded from the build entirely when not in use.
sancov = [ "$zx/public/gn/config/sanitizers:sancov" ]
if (configs + sancov - sancov != configs) {
sources += [ "sancov-stubs.S" ]
}
}