-
Notifications
You must be signed in to change notification settings - Fork 13.5k
wasm-ld -v
exits without generating output
#112836
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
Comments
@llvm/issue-subscribers-lld-wasm Author: John Millikin (jmillikin)
lld has two version-related options, `-v` and `--version`. The difference is that `ld.lld -v -o hello hello.o` will print out its version and then continue, whereas `ld.lld --version -o hello hello.o` will exit immediately.
llvm-project/lld/ELF/Driver.cpp Lines 634 to 635 in 7ba7d8e
llvm-project/lld/ELF/Driver.cpp Lines 657 to 662 in 7ba7d8e
When lld is invokved as llvm-project/lld/wasm/Driver.cpp Lines 1193 to 1197 in 7ba7d8e
This breaks existing tooling that expects |
Seems like we can/should just match the ELF behaviour here. Would you have time to upload a PR for that? |
I could send a PR but I don't currently have a machine capable of doing an LLVM build, so my PR would be untested (other than by CI). Would that be ok? |
No worries, I can take care of it |
lld has two version-related options,
-v
and--version
. The difference is thatld.lld -v -o hello hello.o
will print out its version and then continue, whereasld.lld --version -o hello hello.o
will exit immediately.llvm-project/lld/ELF/Driver.cpp
Lines 634 to 635 in 7ba7d8e
llvm-project/lld/ELF/Driver.cpp
Lines 657 to 662 in 7ba7d8e
When lld is invokved as
wasm-ld
, it treats both flags identically and always exits early:llvm-project/lld/wasm/Driver.cpp
Lines 1193 to 1197 in 7ba7d8e
This breaks existing tooling that expects
clang -Wl,-v
to generate output regardless of the chosen target platform.The text was updated successfully, but these errors were encountered: