update swift package

This commit is contained in:
Paolo Tranquilli
2022-04-13 14:47:51 +02:00
parent e68172f4b0
commit 73d5691d91
2 changed files with 30 additions and 12 deletions

View File

@@ -1,22 +1,27 @@
cc_library(
name = "swift-llvm-support",
srcs = glob([
"libswiftAndLlvmSupportReal.a",
"libswiftAndLlvmSupportReal.so",
]),
srcs = [
"libCodeQLSwiftFrontendTool.a",
] + select({
"@platforms//os:linux": [
"libCodeQLSwiftFrontendTool.so",
],
"@platforms//os:macos": [
"libCodeQLSwiftFrontendTool.dylib",
],
}),
hdrs = glob(["include/**/*"]),
linkopts = [
"-lm",
"-lz",
] + select({
"@platforms//os:macos": ["-lcurses"],
"@platforms//os:linux": [
"-luuid",
"-lrt",
"-lpthread",
"-ltinfo",
"-ldl",
],
"//conditions:default": [],
}),
strip_include_prefix = "include",
visibility = ["//visibility:public"],