-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustc: Enable embedding LLVM bitcode for iOS #48896
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
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 |
---|---|---|
|
@@ -86,6 +86,7 @@ fn main() { | |
|
||
fn build_libbacktrace(host: &str, target: &str) -> Result<(), ()> { | ||
let native = native_lib_boilerplate("libbacktrace", "libbacktrace", "backtrace", ".libs")?; | ||
let cflags = env::var("CFLAGS").unwrap_or_default() + " -fvisibility=hidden -O2"; | ||
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. Is this related to bitcode embedding? 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. Sort of tangentially yeah, but it's otherwise fixing issues that @comex brought up when testing this 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. I later saw that this is in a separate commit with proper commit message anyway. Thanks for the info! |
||
|
||
run(Command::new("sh") | ||
.current_dir(&native.out_dir) | ||
|
@@ -98,7 +99,7 @@ fn build_libbacktrace(host: &str, target: &str) -> Result<(), ()> { | |
.arg("--disable-host-shared") | ||
.arg(format!("--host={}", build_helper::gnu_target(target))) | ||
.arg(format!("--build={}", build_helper::gnu_target(host))) | ||
.env("CFLAGS", env::var("CFLAGS").unwrap_or_default() + " -fvisibility=hidden")); | ||
.env("CFLAGS", cflags)); | ||
|
||
run(Command::new(build_helper::make(host)) | ||
.current_dir(&native.out_dir) | ||
|
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.
I guess this is what clang is doing?