[llvm] da47c27 - [gn build] (manually) port 6fe2beba7d2a (ExceptionTests)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 3 06:01:30 PDT 2021
Author: Nico Weber
Date: 2021-09-03T09:01:24-04:00
New Revision: da47c2719b1094a29427917ddb157c9c716e876d
URL: https://github.com/llvm/llvm-project/commit/da47c2719b1094a29427917ddb157c9c716e876d
DIFF: https://github.com/llvm/llvm-project/commit/da47c2719b1094a29427917ddb157c9c716e876d.diff
LOG: [gn build] (manually) port 6fe2beba7d2a (ExceptionTests)
Added:
llvm/utils/gn/secondary/clang/unittests/Interpreter/ExceptionTests/BUILD.gn
Modified:
llvm/utils/gn/secondary/clang/unittests/BUILD.gn
llvm/utils/gn/secondary/llvm/utils/unittest/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/unittests/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
index 319205b5831bb..3322ca4f2a195 100644
--- a/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
@@ -29,13 +29,16 @@ group("unittests") {
]
}
if (host_os != "win") {
- # FIXME: libclang unit tests are disabled on Windows due
- # to failures, mostly in libclang.VirtualFileOverlay_*.
- # FIXME: Also, the executable can't find libclang.dll since that's
- # in a
diff erent directory.
deps += [
+ # FIXME: libclang unit tests are disabled on Windows due
+ # to failures, mostly in libclang.VirtualFileOverlay_*.
+ # FIXME: Also, the executable can't find libclang.dll since that's
+ # in a
diff erent directory.
"libclang:libclangTests",
"libclang/CrashTests:libclangCrashTests",
+
+ # Exceptions on Windows are not yet supported.
+ "Interpreter/ExceptionTests:ClangReplInterpreterExceptionTests",
]
}
testonly = true
diff --git a/llvm/utils/gn/secondary/clang/unittests/Interpreter/ExceptionTests/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Interpreter/ExceptionTests/BUILD.gn
new file mode 100644
index 0000000000000..5b0173badd658
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/unittests/Interpreter/ExceptionTests/BUILD.gn
@@ -0,0 +1,20 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("ClangReplInterpreterExceptionTests") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ configs -= [
+ "//llvm/utils/gn/build:no_exceptions",
+ "//llvm/utils/gn/build:no_rtti",
+ ]
+ deps = [
+ "//clang/lib/AST",
+ "//clang/lib/Basic",
+ "//clang/lib/Interpreter",
+ "//clang/lib/Frontend",
+ "//llvm/lib/IR",
+ "//llvm/lib/ExecutionEngine/Orc",
+ "//llvm/lib/Support",
+ "//llvm/lib/Target:TargetsToBuild",
+ ]
+ sources = [ "InterpreterExceptionTest.cpp" ]
+}
diff --git a/llvm/utils/gn/secondary/llvm/utils/unittest/BUILD.gn b/llvm/utils/gn/secondary/llvm/utils/unittest/BUILD.gn
index ccdb401a4b834..844e43c856f4f 100644
--- a/llvm/utils/gn/secondary/llvm/utils/unittest/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/utils/unittest/BUILD.gn
@@ -27,6 +27,7 @@ static_library("gtest") {
]
public_configs = [ ":googletest_config" ]
configs -= [ "//llvm/utils/gn/build:warn_covered_switch_default" ]
+ configs -= [ "//llvm/utils/gn/build:no_rtti" ]
sources = [
"googlemock/src/gmock-all.cc",
"googletest/src/gtest-all.cc",
More information about the llvm-commits
mailing list