Skip to content

Conversation

@kornelski
Copy link
Contributor

@kornelski kornelski commented Jan 5, 2024

On macOS, cargo build --target=x86_64-unknown-linux-musl makes rustc panic in compiler/rustc_codegen_llvm/src/back/archive.rs:397:67, because the librav1easm.a file is invalid and unusable. This is because running aarch64-darwin's strip command run on an x86-64-musl archive ruins it.

I've made rav1e not run strip during cross-compilation, unless CARGO_TARGET_{target}_STRIP or STRIP env var is set.

@shssoichiro
Copy link
Collaborator

Looks good. Could you please run cargo fmt and push to make the CI happy?

@codecov
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7d773ea) 88.52% compared to head (0b1e4f4) 88.52%.

❗ Current head 0b1e4f4 differs from pull request most recent head 67d93d4. Consider uploading reports for the commit 67d93d4 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3333   +/-   ##
=======================================
  Coverage   88.52%   88.52%           
=======================================
  Files          89       89           
  Lines       28334    28334           
=======================================
  Hits        25084    25084           
  Misses       3250     3250           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lu-zero
Copy link
Collaborator

lu-zero commented Jan 6, 2024

I wonder if would be possible to tell nasm to not emit those symbols to begin with now. The patch seems fine.

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.

3 participants