Skip to content

Commit

Permalink
Reland "[gn build] (manually) port 6fe2beb (ExceptionTests)"
Browse files Browse the repository at this point in the history
This reverts commit 98d0f8f.
6fe2beb relanded in 1dba6b3.
  • Loading branch information
nico committed Oct 8, 2021
1 parent ff013b6 commit 842035d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
11 changes: 7 additions & 4 deletions llvm/utils/gn/secondary/clang/unittests/BUILD.gn
Expand Up @@ -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 different 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 different directory.
"libclang:libclangTests",
"libclang/CrashTests:libclangCrashTests",

# Exceptions on Windows are not yet supported.
"Interpreter/ExceptionTests:ClangReplInterpreterExceptionTests",
]
}
testonly = true
Expand Down
@@ -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" ]
}
1 change: 1 addition & 0 deletions llvm/utils/gn/secondary/llvm/utils/unittest/BUILD.gn
Expand Up @@ -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",
Expand Down

0 comments on commit 842035d

Please sign in to comment.