-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[darwin][build] Copy the libclang_rt.{ios/tvos/watchos}.a from toolchain to the build dir so that swift-clang can use them when building for ios/tvos/watchos #25547
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
|
@swift-ci Please clean smoke test |
…ain to the build dir so that swift-clang can use them when building for ios/tvos/watchos
|
@swift-ci Please clean smoke test |
| # builtins for iOS/tvOS/watchOS to ensure that Swift's | ||
| # stdlib can use compiler-rt builtins when targetting iOS/tvOS/watchOS. | ||
| if [[ "${product}" == "llvm" ]]; then | ||
| if [[ "$(uname -s)" == "Darwin" ]] ; then |
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.
Any reason these if statements aren't combined into one?
| if [[ "${product}" == "llvm" ]]; then | ||
| if [[ "$(uname -s)" == "Darwin" ]] ; then | ||
| HOST_CXX_DIR=$(dirname "${HOST_CXX}") | ||
| HOST_CXX_BUILTINS_VERSION=$(ls "$HOST_CXX_DIR/../lib/clang" | awk '{print $0}') |
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.
What happens if this directory isn't there?
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.
This broke my compilation because it's expanding to
4.0.0
5.0.0
6.0.0
7.0.0
…newlines included. I know that's probably not normal but it'd be good to handle.
|
|
||
| echo "copying compiler-rt embedded builtins into the local clang build directory $DEST_BUILTINS_DIR." | ||
|
|
||
| if [ -f "$HOST_CXX_BUILTINS_DIR/libclang_rt.ios.a" ]; then |
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.
We should probably keep using the [[ syntax here for tests.
Similarly to what was done for swiftlang#25547, copy the compiler-rt built-ins for embedded platforms from the Xcode toolchain into the new generated one, so to avoid link time errors. Addresses SR-12001, rdar://57837918
Similarly to what was done for swiftlang#25547, copy the compiler-rt built-ins for embedded platforms from the Xcode toolchain into the new generated one, so to avoid link time errors. Addresses SR-12001, rdar://57837918
Similarly to what was done for swiftlang#25547, copy the compiler-rt built-ins for embedded platforms from the Xcode toolchain into the new generated one, so to avoid link time errors. Addresses SR-12001, rdar://57837918 Cherry-pick of swiftlang#31247 -- this also brings in the improvements from swiftlang#34049
Try to build compiler_rt for iOS/watchOS/tvOS.