Skip to content

Commit 38ab0e4

Browse files
Try windows fix
1 parent 739de23 commit 38ab0e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ let package = Package(
139139
// Do not enforce checks for LLVM's ABI-breaking build settings.
140140
// makeOptions runtime uses some header-only code from LLVM's ADT classes,
141141
// but we do not want to link libSupport into the executable.
142-
cxxSettings: [.unsafeFlags(["-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1"])]),
142+
cxxSettings: [.unsafeFlags(["-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1"])],
143+
linkerSettings: [
144+
.linkedLibrary("swiftCore", .when(platforms: [.windows])), // for swift_addNewDSOImage
145+
]),
143146
],
144147
cxxLanguageStandard: .cxx17
145148
)

0 commit comments

Comments
 (0)