Skip to content

Commit

Permalink
Bump swift syntax and stacky macros.
Browse files Browse the repository at this point in the history
* also silence retroactive conformance warnings.

Signed-off-by: furby™ <[email protected]>
  • Loading branch information
furby-tm committed Nov 26, 2024
1 parent 92fc75c commit 49cd69c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 24 deletions.
19 changes: 5 additions & 14 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
"version" : "1.1.2"
}
},
{
"identity" : "javascriptkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftwasm/JavaScriptKit",
"state" : {
"revision" : "bfaba41ab62aaa89080f9d467eb68497e77a8a10",
"version" : "0.20.0"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
Expand Down Expand Up @@ -59,8 +50,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/stackotter/swift-macro-toolkit",
"state" : {
"revision" : "687075e7bf976e121d083e922a07c7a9350ca85d",
"version" : "0.4.0"
"revision" : "e706aa98bc28f82677923f7b8f560bba6f90fac2",
"version" : "0.6.0"
}
},
{
Expand All @@ -75,10 +66,10 @@
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"location" : "https://github.com/swiftlang/swift-syntax.git",
"state" : {
"revision" : "2bc86522d115234d1f588efe2bcb4ce4be8f8b82",
"version" : "510.0.3"
"revision" : "0687f71944021d616d34d922343dcef086855920",
"version" : "600.0.1"
}
},
{
Expand Down
15 changes: 7 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CompilerPluginSupport
import Foundation
import PackageDescription

let noWasm = ProcessInfo.processInfo.environment["NO_WASM"] == "1"
let yesWasm = ProcessInfo.processInfo.environment["YES_WASM"] == "1"

let wasmTarget: Target = .executableTarget(
name: "GalahWeb",
Expand Down Expand Up @@ -34,16 +34,15 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
.package(
url: "https://github.com/apple/swift-syntax.git",
from: "510.0.3"
url: "https://github.com/swiftlang/swift-syntax.git",
from: "600.0.1"
),
.package(
url: "https://github.com/stackotter/swift-macro-toolkit",
from: "0.4.0"
from: "0.6.0"
),
.package(url: "https://github.com/swiftwasm/carton", from: "1.1.2"),
.package(url: "https://github.com/swiftwasm/JavaScriptKit", exact: "0.20.0"),
],
.package(url: "https://github.com/swiftwasm/carton", from: "1.1.2")
] + (yesWasm ? [.package(url: "https://github.com/swiftwasm/JavaScriptKit", exact: "0.20.0")] : []),
targets: [
.executableTarget(
name: "galah",
Expand Down Expand Up @@ -74,5 +73,5 @@ let package = Package(
name: "GalahInterpreterTests",
dependencies: ["GalahInterpreter"]
),
] + (noWasm ? [] : [wasmTarget])
] + (yesWasm ? [wasmTarget] : [])
)
2 changes: 1 addition & 1 deletion Sources/GalahInterpreter/Diagnostic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ extension [WithDiagnostics<CheckedAST.Fn>] {
}
}

extension [Diagnostic]: Error {}
extension [Diagnostic]: Swift.Error {}

protocol Foldable<Element>: Error {
associatedtype Element
Expand Down
2 changes: 1 addition & 1 deletion Sources/galah/Cli.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import GalahInterpreter

var standardError = FileHandle.standardError

extension FileHandle: TextOutputStream {
extension FileHandle: Swift.TextOutputStream {
public func write(_ string: String) {
let data = Data(string.utf8)
self.write(data)
Expand Down

0 comments on commit 49cd69c

Please sign in to comment.