Skip to content

Commit

Permalink
Note Swift-5.6 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
rhx committed Jul 29, 2023
1 parent 6f46f90 commit 8a364d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let package = Package(
name: "HelloGtk",
dependencies: [
.package(url: "https://github.com/rhx/gir2swift.git", branch: "development"),
.package(url: "https://github.com/rhx/SwiftGtk.git", branch: "development"),
.package(url: "https://github.com/rhx/SwiftGtk.git", branch: "monorepo-development"),
],
targets: [
.target(name: "HelloGtk", dependencies: [
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ underlying types or pointers.
This means that a lot of the changes will be source-breaking for code that
was compiled against libraries built with earlier versions of `gir2swift`.

* Requires Swift 5.2 or later (Swift 5.3 is required for the `gtk4` branch)
* Requires Swift 5.6 or later
* Wrapper code is now `@inlinable` to enable the compiler to optimise away most of the wrappers
* Parameters and return types use more idiomatic Swift (e.g. `Ref` wrappers instead of pointers, `Int` instead of `gint`, etc.)
* Functions that take or return records now are templated instead of using the type-erased Protocol
Expand All @@ -63,13 +63,13 @@ was compiled against libraries built with earlier versions of `gir2swift`.
Building should work with at least Swift 5.6. You can download Swift from https://swift.org/download/ -- if you are using macOS, make sure you have the command line tools installed as well (install them using `xcode-select --install`). Test that your compiler works using `swift --version`, which should give you something like

$ swift --version
swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
Target: x86_64-apple-darwin20.3.0
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
Target: arm64-apple-macosx13.0

on macOS, or on Linux you should get something like:

$ swift --version
Swift version 5.6.1 (swift-5.6.1-RELEASE)
Swift version 5.8.1 (swift-5.8.1-RELEASE)
Target: x86_64-unknown-linux-gnu

### Gtk 3.22 or higher
Expand Down

0 comments on commit 8a364d0

Please sign in to comment.