# 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("stack") { | |
testonly = true | |
sources = [ "stack-test.cc" ] | |
deps = [ | |
"$zx/system/ulib/fdio", | |
"$zx/system/ulib/runtime:headers", | |
"$zx/system/ulib/zircon", | |
"$zx/system/ulib/zxtest", | |
] | |
cflags = [ "-fstack-protector-all" ] | |
if (current_cpu == "arm64" && !is_gcc) { | |
cflags += [ "-fsanitize=shadow-call-stack" ] | |
} | |
} |