-
Notifications
You must be signed in to change notification settings - Fork 252
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
Strip the local symbols from the nasm objects #2762
Conversation
Thanks for doing this. Unfortunately, it doesn't work on my computer in its current state. It seems to be using the wrong file.
Finding the file:
|
right!
…On Thu, Jul 22, 2021, 02:53 Kyle Siefring ***@***.***> wrote:
Doesn't work on my computer. It seems to be using the wrong file.
Printing out the path:
panic!("{:?}", Path::new(&out_dir).join("rav1easm.a"));`
thread 'main' panicked at '"/home/kyle/Programming/VideoEncode/rav1e/rav1e/target/release/build/rav1e-388a8ed5e3fac2cf/out/rav1easm.a"', build.rs:153:5
Finding the file:
find . -regextype sed -regex ".*rav1easm.*"
...
./target/debug/build/rav1e-0d4b49c9f2795e3c/out/librav1easm.a
./target/debug/build/rav1e-fddf7b5d00394bfb/out/librav1easm.a
./target/debug/build/rav1e-a356b122f2ada701/out/librav1easm.a
./target/release/build/rav1e-388a8ed5e3fac2cf/out/librav1easm.a
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2762 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB2LJBJLTSA72WAFC7JVQLTY5TYVANCNFSM5AYYSBEQ>
.
|
I noticed that you switched to -X. This doesn't seem to work, see below.
I basically want the .loop's to be merged with the main function. I'm also noticing that build_asm_files isn't rerun when build.rs is modified and I have to delete the release folder. This surprises me somewhat, since I could have sworn that in the past it reran whenever it was modified. EDIT: It seems the hash_changed does not consider whether build.rs has changed. |
I'll add Please open an issue to the nasm upstream. |
build.rs
Outdated
|
||
let mut cmd = std::process::Command::new(strip); | ||
|
||
cmd.arg("-").arg(obj.as_ref()); |
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.
Doesn't this just remove all symbols???
They tend to confuse the debugger and are overall unnecessary.
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.
LGTM
More recent versions use cfg-expr 0.8 that use a rust-1.53 feature: or-patterns
They tend to confuse the debugger and are overall unnecessary.