Skip to content

Use %target-swiftc_driver in objc_class_properties_runtime.swift #70689

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

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Jan 3, 2024

This way we will compile the test program with -Xlinker -headerpad_max_install_names, which will allow
swift-darwin-postprocess.py to amend the install names without errors.

Take the chance to remove the -target parameter -- that is already
provided by %target-swiftc_driver, and we have no need to enforce it to
be at least macosx10.11 (since by virtue of build-script defaults and
Xcode in CI we don't support anything lower than macosx10.13)

Addresses rdar://119907089

@edymtt edymtt requested review from rintaro and shahmishal January 3, 2024 15:55
@edymtt
Copy link
Contributor Author

edymtt commented Jan 3, 2024

@swift-ci please test

@edymtt
Copy link
Contributor Author

edymtt commented Jan 3, 2024

@swift-ci please build toolchain

This way we will compile the test program with `-Xlinker
-headerpad_max_install_names`, which will allow
`swift-darwin-postprocess.py` to amend the install names without errors.

Take the chance to remove the `-target` parameter -- that is already
provided by %target-swiftc_driver, and we have no need to enforce it to
be at least `macosx10.11` (since by virtue of build-script defaults and
Xcode in CI we don't support anything lower than `macosx10.13`)

Addresses rdar://119907089
@edymtt edymtt force-pushed the edymtt/use-target-swiftc-driver-for-objc_class_properties_runtime branch from 2c2c1b8 to ea5d416 Compare January 3, 2024 20:16
@edymtt
Copy link
Contributor Author

edymtt commented Jan 3, 2024

@swift-ci please test

@edymtt
Copy link
Contributor Author

edymtt commented Jan 3, 2024

@swift-ci please build toolchain

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup!

@edymtt edymtt merged commit a566c10 into swiftlang:main Jan 4, 2024
Catfish-Man pushed a commit to Catfish-Man/swift that referenced this pull request Jan 19, 2024
…ftlang#70689)

This way we will compile the test program with `-Xlinker
-headerpad_max_install_names`, which will allow
`swift-darwin-postprocess.py` to amend the install names without errors.

Take the chance to remove the `-target` parameter -- that is already
provided by %target-swiftc_driver, and we have no need to enforce it to
be at least `macosx10.11` (since by virtue of build-script defaults and
Xcode in CI we don't support anything lower than `macosx10.13`)

Addresses rdar://119907089
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.

2 participants