We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Imagine a directory structure such as:
├── main.rs ├── target.json ├── libthing/ │ ├── lib.rs
Where main.rs depends on the separate crate thing
main.rs
thing
cd libthing/ && rustc lib.rs --target ../target.json rustc main.rs --target target.json --extern thing=libthing/libthing.rlib
You'll get an error that looks like this:
main.rs:1 error: couldn't find crate `thing` with expected target triple target.json main.rs:1 extern crate thing;
when compiling main.rs, rustc expects --target ../target.json instead of the equivalent path in the correct working directory.
--target ../target.json
tl;dr It seems only the exact argument of --target is stored in the .rlib instead of the actual contents of the json file.
--target
The text was updated successfully, but these errors were encountered:
dup of #24666 ?
Sorry, something went wrong.
Seems so. I'll close in favor of that issue.
No branches or pull requests
Imagine a directory structure such as:
Where
main.rs
depends on the separate cratething
You'll get an error that looks like this:
when compiling
main.rs
, rustc expects--target ../target.json
instead of the equivalent path in the correct working directory.tl;dr It seems only the exact argument of
--target
is stored in the .rlib instead of the actual contents of the json file.The text was updated successfully, but these errors were encountered: