[llvm] 361d5a7 - [gn] port 4e3dac6f0a4c (ScudoHooksUnitTest)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 14 11:14:09 PST 2023
Author: Nico Weber
Date: 2023-02-14T14:13:56-05:00
New Revision: 361d5a7a9f14ed002004b1953434a37ccb138cae
URL: https://github.com/llvm/llvm-project/commit/361d5a7a9f14ed002004b1953434a37ccb138cae
DIFF: https://github.com/llvm/llvm-project/commit/361d5a7a9f14ed002004b1953434a37ccb138cae.diff
LOG: [gn] port 4e3dac6f0a4c (ScudoHooksUnitTest)
Added:
Modified:
llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
index 430f55b8976cc..f928f0bbb35c4 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/scudo/BUILD.gn
@@ -15,6 +15,7 @@ group("scudo") {
"standalone/tests:ScudoCUnitTest($toolchain)",
"standalone/tests:ScudoCxxUnitTest($toolchain)",
"standalone/tests:ScudoUnitTest($toolchain)",
+ "standalone/tests:ScudoHooksUnitTest($toolchain)",
]
}
testonly = true
diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn
index 452c19f480d97..5b9078849292e 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn
@@ -66,3 +66,17 @@ unittest("ScudoCxxUnitTest") {
}
has_custom_main = true
}
+
+unittest("ScudoHooksUnitTest") {
+ configs += [ "//llvm/utils/gn/build:crt_code" ]
+ cflags = test_cflags
+ deps = [
+ "//compiler-rt/lib/scudo/standalone:c_wrapper_sources",
+ "//compiler-rt/lib/scudo/standalone:sources",
+ ]
+ sources = [
+ "scudo_hooks_test.cpp",
+ "scudo_unit_test_main.cpp",
+ ]
+ has_custom_main = true
+}
More information about the llvm-commits
mailing list