Skip to content

Set SWIFT_SYSTEM_NAME for macro project in CMake #896

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
Sep 3, 2024

Conversation

jmschonfeld
Copy link
Contributor

When FoundationMacros was moved into its own CMake project, we did not copy over the SWIFT_SYSTEM_NAME setting. This results in the rpath for libFoundationMacros.so being $ORIGIN/../../../swift/:$ORIGIN/.. instead of the correct value ($ORIGIN/../../../swift/linux:$ORIGIN/.. for linux, for example). This fixes the macro build which allows #Predicate and #Expression to work as expected.

(note for context that this set value is used on line 90 of this file: INSTALL_RPATH "$ORIGIN/../../../swift/${SWIFT_SYSTEM_NAME}:$ORIGIN/..")

@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld merged commit ef8c1d5 into swiftlang:main Sep 3, 2024
3 checks passed
@jmschonfeld jmschonfeld deleted the fix-macro-rpath branch September 3, 2024 21:58
jmschonfeld added a commit to jmschonfeld/swift-foundation that referenced this pull request Sep 3, 2024
jmschonfeld added a commit to jmschonfeld/swift-foundation that referenced this pull request Sep 4, 2024
jmschonfeld added a commit to jmschonfeld/swift-foundation that referenced this pull request Sep 5, 2024
cthielen pushed a commit to cthielen/swift-foundation that referenced this pull request Nov 8, 2024
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