Skip to content

Commit

Permalink
Adds -parse-as-library flag for Windows workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Mar 19, 2024
1 parent 07b9f2e commit 8641f6e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ let package = Package(
.product(name: "SwiftParserDiagnostics", package: "swift-syntax"),
],
path: "Sources",
exclude: ["CMakeLists.txt"]),
exclude: ["CMakeLists.txt"],
// This setting is needed on Windows until SPM >5.9.0 is
// released due to
// https://github.com/apple/swift-package-manager/issues/7410
swiftSettings: [.unsafeFlags(["-parse-as-library"])]
),

.target(name: "DummyTestee",
path: "Tests",
Expand Down

0 comments on commit 8641f6e

Please sign in to comment.