We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.8.9
Ubuntu 22.04
xmake/xmake/modules/core/tools/rustc.lua
Lines 78 to 85 in 61498e2
When doing something like add_frameworks("/some/dir/libmydep.rlib"), rustc runs with --extern =/some/dir/libmydep.rlib.
add_frameworks("/some/dir/libmydep.rlib")
--extern =/some/dir/libmydep.rlib
add_frameworks("/some/dir/libmydep-asdf1234.rlib"), rustc runs with --extern mydep=/some/dir/libmydep-asdf1234.rlib (as expected)
add_frameworks("/some/dir/libmydep-asdf1234.rlib")
--extern mydep=/some/dir/libmydep-asdf1234.rlib
I'd expect that add_frameworks("/some/dir/libmydep.rlib"), rustc runs with --extern mydep=/some/dir/libmydep.rlib.
--extern mydep=/some/dir/libmydep.rlib
target("test_target") add_rules("rust") add_frameworks("src/libmydep.rlib") add_frameworks("src/libmydep-1234.rlib")
linkflags (rcld): -> --extern =src/libmydep.rlib --extern mydep=src/libmydep-1234.rlib --crate-type=bin
The text was updated successfully, but these errors were encountered:
#5034
Sorry, something went wrong.
No branches or pull requests
Xmake Version
2.8.9
Operating System Version and Architecture
Ubuntu 22.04
Describe Bug
xmake/xmake/modules/core/tools/rustc.lua
Lines 78 to 85 in 61498e2
When doing something like
add_frameworks("/some/dir/libmydep.rlib")
, rustc runs with--extern =/some/dir/libmydep.rlib
.add_frameworks("/some/dir/libmydep-asdf1234.rlib")
, rustc runs with--extern mydep=/some/dir/libmydep-asdf1234.rlib
(as expected)Expected Behavior
I'd expect that
add_frameworks("/some/dir/libmydep.rlib")
, rustc runs with--extern mydep=/some/dir/libmydep.rlib
.Project Configuration
Additional Information and Error Logs
The text was updated successfully, but these errors were encountered: