Skip to content

Move additional swift compiler flags from build-script to Package.swift #162

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

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 28, 2019

Moving all additional Swift compiler flags from build-script.py to Package.swift allows for a more consistent build, independent of whether build-script was used or not.

This will allow us to use a unified build directory for all packages depending on Swift later on.

@ahoppen ahoppen force-pushed the swift-args-in-package branch 2 times, most recently from a006c16 to 5d58ab6 Compare October 29, 2019 18:26
@ahoppen
Copy link
Member Author

ahoppen commented Oct 29, 2019

Thanks for all your feedback.

I have updated the PR to only specify the unsafe flags when we are in a controlled CI environment, i.e. if SWIFT_SYNTAX_CI_ENVIRONMENT is specified.

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5d58ab6

@shahmishal
Copy link
Member

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5d58ab6

@ahoppen
Copy link
Member Author

ahoppen commented Oct 29, 2019

swiftlang/swift#27934

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5d58ab6

@shahmishal
Copy link
Member

swiftlang/swift#27934

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 29, 2019

I have modified this PR to only contain unsafe flags when we are in a controlled CI environment, i.e. if the environment variable SWIFT_SYNTAX_CI_ENVIRONMENT is specified.

Could you please take another look at the changes?

@ahoppen ahoppen changed the title WIP: Move additional swift compiler flags from build-script to Package.swift Move additional swift compiler flags from build-script to Package.swift Oct 29, 2019
@ahoppen ahoppen force-pushed the swift-args-in-package branch from 5d58ab6 to 032a456 Compare October 29, 2019 22:26
This allows for a more consistent build, independent of whether
build-script was used or not. This will allow us to use a unified build
directory for all packages depending on Swift later on.
@ahoppen ahoppen force-pushed the swift-args-in-package branch from 032a456 to c1209f6 Compare October 30, 2019 03:18
@ahoppen
Copy link
Member Author

ahoppen commented Oct 30, 2019

@swift-ci Please test

@swiftlang swiftlang deleted a comment from swift-ci Oct 30, 2019
@ahoppen ahoppen merged commit c5be148 into swiftlang:master Oct 30, 2019
@ahoppen ahoppen deleted the swift-args-in-package branch October 31, 2019 23:27
adevress pushed a commit to adevress/swift-syntax that referenced this pull request Jan 14, 2024
Add `ignore-unparsable-files` to silence diagnostics for invalid syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants