-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Reland optimized-compiler-builtins config #119556
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,15 @@ fi | |
# space required for CI artifacts. | ||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --dist-compression-formats=xz" | ||
|
||
# Enable the `c` feature for compiler_builtins, but only when the `compiler-rt` source is available | ||
# (to avoid spending a lot of time cloning llvm) | ||
if [ "$EXTERNAL_LLVM" = "" ]; then | ||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.optimized-compiler-builtins" | ||
elif [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then | ||
echo "error: dist builds should always use optimized compiler-rt!" >&2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does dist-various-2 really use an external LLVM? I don't see llvm-root/llvm-config options in the Dockerfile. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't use, my bad. I got confused with "ENV EXTERNAL_LLVM 1" |
||
exit 1 | ||
fi | ||
|
||
if [ "$DIST_SRC" = "" ]; then | ||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-dist-src" | ||
fi | ||
|
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.
you didn't update the PR number
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.
It's the actual PR number of the implementation.