Skip to content

[test] Replace swift_obj_root for alternates that work in LLVM unified builds #66167

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

Conversation

drodriguez
Copy link
Contributor

In LLVM unified builds %swift_obj_root points to <LLVM build dir>/tools/swift, and folders like bin, lib and share are not under swift_obj_root, which makes some tests fail.

For the cases in which %swift_obj_root/lib was used, replace it by using %swift-lib-dir instead. Replicate %swift-lib-dir to create %swift-bin-dir and %swift-share-dir, and use those instead of %swift_obj_root/bin and %swift_obj_root/share.

This alternates work both in Swift build-script builds and also in LLVM unified builds.

…d builds

In LLVM unified builds `%swift_obj_root` points to `<LLVM build dir>/tools/swift`,
and folders like `bin`, `lib` and `share` are not under `swift_obj_root`, which
makes some tests fail.

For the cases in which `%swift_obj_root/lib` was used, replace it by
using `%swift-lib-dir` instead. Replicate `%swift-lib-dir` to create
`%swift-bin-dir` and `%swift-share-dir`, and use those instead of
`%swift_obj_root/bin` and `%swift_obj_root/share`.

This alternates work both in Swift build-script builds and also in LLVM
unified builds.
@drodriguez
Copy link
Contributor Author

@swift-ci please test

@drodriguez drodriguez marked this pull request as ready for review May 26, 2023 15:32
@drodriguez drodriguez requested a review from artemcm as a code owner May 26, 2023 15:32
@drodriguez drodriguez merged commit 8f0382c into swiftlang:main May 26, 2023
@drodriguez drodriguez deleted the a-lot-less-swift-obj-root-please branch May 26, 2023 15:39
NuriAmari pushed a commit to NuriAmari/swift that referenced this pull request May 28, 2023
…d builds (swiftlang#66167)

In LLVM unified builds `%swift_obj_root` points to `<LLVM build dir>/tools/swift`,
and folders like `bin`, `lib` and `share` are not under `swift_obj_root`, which
makes some tests fail.

For the cases in which `%swift_obj_root/lib` was used, replace it by
using `%swift-lib-dir` instead. Replicate `%swift-lib-dir` to create
`%swift-bin-dir` and `%swift-share-dir`, and use those instead of
`%swift_obj_root/bin` and `%swift_obj_root/share`.

This alternates work both in Swift build-script builds and also in LLVM
unified builds.
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.

1 participant