-
Notifications
You must be signed in to change notification settings - Fork 10
Update for Xcode 15.0.1/Swift 5.9/swift-syntax 509.0.2 #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d7aa8d3
36a6c2c
ff944ac
13172e3
27ec29a
24ea6b1
be50a45
a3e7427
bbf2117
3beee4f
c0b2714
39c87ce
b6f1ad2
5689cf1
6405da5
57dca67
f0ebcc0
03d00b0
83621d8
e7a1648
e1dd83a
c7be92f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,13 +4,9 @@ SWIFT_BUILD_FLAGS := -c release --disable-sandbox | |
| TOOL_NAME := swift-mod | ||
| XCODE_DEFAULT_TOOLCHAIN := /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain | ||
| GITHUB_REPO := ra1028/$(TOOL_NAME) | ||
| DOCKER_IMAGE_NAME := swift:5.5 | ||
| DOCKER_IMAGE_NAME := swift:5.9 | ||
|
|
||
| ifeq ($(shell uname), Darwin) | ||
| USE_SWIFT_STATIC_STDLIB := $(shell test -d $$(dirname $$(xcrun --find swift))/../lib/swift_static/macosx && echo use_swift_static_stdlib_flag) | ||
| ifeq ($(USE_SWIFT_STATIC_STDLIB), use_swift_static_stdlib_flag) | ||
| SWIFT_BUILD_FLAGS += -Xswiftc -static-stdlib | ||
| endif | ||
|
Comment on lines
-10
to
-13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We cannot pass |
||
| SWIFT_BUILD_FLAGS += --arch arm64 --arch x86_64 | ||
| endif | ||
|
|
||
|
|
@@ -47,7 +43,7 @@ docker-test: | |
| zip: build | ||
| install_name_tool -add_rpath @loader_path -add_rpath $(XCODE_DEFAULT_TOOLCHAIN)/usr/lib/swift/macosx $(TOOL_BIN) 2>/dev/null || true | ||
| rm -f $(TOOL_NAME).zip | ||
| zip -j $(TOOL_NAME).zip $(TOOL_BIN) $(TOOL_BIN_DIR)/lib_InternalSwiftSyntaxParser.dylib LICENSE | ||
| zip -j $(TOOL_NAME).zip $(TOOL_BIN) LICENSE | ||
|
|
||
| upload-zip: zip | ||
| @[ -n "$(GITHUB_TOKEN)" ] || (echo "\nERROR: Make sure setting environment variable 'GITHUB_TOKEN'." && exit 1) | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved from |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import SwiftSyntax | ||
|
|
||
| public extension DeclModifierListSyntax { | ||
| var hasFinal: Bool { | ||
| contains { $0.name.tokenKind == .keyword(.final) } | ||
| } | ||
|
|
||
| var hasStatic: Bool { | ||
| contains { $0.name.tokenKind == .keyword(.static) } | ||
| } | ||
|
|
||
| var accessLevelModifier: DeclModifierSyntax? { | ||
| first { modifier in | ||
| switch modifier.name.tokenKind { | ||
| case .keyword(.open), | ||
| .keyword(.public), | ||
| .keyword(.internal), | ||
| .keyword(.fileprivate), | ||
| .keyword(.private): | ||
| return true | ||
|
|
||
| default: | ||
| return false | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ public extension Indent { | |
| return .spaces(spaces) | ||
|
|
||
| case .tab: | ||
| return .tabs(1) | ||
| return .tab | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: Replacing with shorter trivia syntaxes like |
||
| } | ||
| } | ||
| } | ||
This file was deleted.
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Goes to |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed deprecated rules.