File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
third_party/swift-llvm-support Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
2
2
load ("@bazel_tools//tools/build_defs/repo:utils.bzl" , "maybe" )
3
3
4
- _swift_prebuilt_version = "swift-5.7.1-RELEASE.44428.89 "
4
+ _swift_prebuilt_version = "swift-5.7.1-RELEASE.44582.104 "
5
5
_swift_sha_map = {
6
- "Linux-X64" : "1fa0b62b3a87c6528bd21b3f3fa1b32ad00e2b6ff04c20652c93c7d00c4cf517 " ,
7
- "macOS-X64" : "6e1239335874cbde635ae9ca9eeb215efee4988888a75f4eda1abbcf97e4d038 " ,
6
+ "Linux-X64" : "8d94f2d75f2aa9ee8e5421318d2f07b27e095127c9be0156794a88d8e9a0f19a " ,
7
+ "macOS-X64" : "5f0550d2924e7071d006a0c9802acbd9a11f0017073e4a1eb27b7ddc4764f3f2 " ,
8
8
}
9
9
10
10
_swift_arch_map = {
Original file line number Diff line number Diff line change 16
16
#include " swift/extractor/remapping/SwiftOpenInterception.h"
17
17
#include " swift/extractor/invocation/SwiftDiagnosticsConsumer.h"
18
18
#include " swift/extractor/trap/TrapDomain.h"
19
+ #include < swift/Basic/InitializeSwiftModules.h>
19
20
20
21
using namespace std ::string_literals;
21
22
@@ -129,6 +130,7 @@ int main(int argc, char** argv) {
129
130
// Required by Swift/LLVM
130
131
PROGRAM_START (argc, argv);
131
132
INITIALIZE_LLVM ();
133
+ initializeSwiftModules ();
132
134
133
135
codeql::SwiftExtractorConfiguration configuration{};
134
136
configuration.trapDir = getenv_or (" CODEQL_EXTRACTOR_SWIFT_TRAP_DIR" , " ." );
Original file line number Diff line number Diff line change @@ -7,9 +7,15 @@ cc_library(
7
7
] + select({
8
8
"@platforms//os:linux": [
9
9
"libCodeQLSwiftFrontendTool.so",
10
+ "libswiftCore.so",
10
11
],
11
12
"@platforms//os:macos": [
12
13
"libCodeQLSwiftFrontendTool.dylib",
14
+ "libswiftCore.dylib",
15
+ "libswiftCompatibility50.a",
16
+ "libswiftCompatibility51.a",
17
+ "libswiftCompatibilityConcurrency.a",
18
+ "libswiftCompatibilityDynamicReplacements.a",
13
19
],
14
20
}),
15
21
hdrs = glob(["include/**/*", "stdlib/**/*" ]),
@@ -23,6 +29,9 @@ cc_library(
23
29
"-lpthread",
24
30
"-ldl",
25
31
],
32
+ "@platforms//os:macos": [
33
+ "-L/usr/lib/swift",
34
+ ],
26
35
"//conditions:default": [],
27
36
}),
28
37
includes = [ "include" ],
You can’t perform that action at this time.
0 commit comments