-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Tracking Issue for host-config #9452
Comments
I'm attempting to use this to fix rust-lang/docs.rs#1580 by setting the configured cargo rustdoc -vv \
--target x86_64-unknown-linux-gnu \
--config 'build.rustflags=["--cfg", "procmacro2_semver_exempt"]' \
--config 'host.rustflags=["--cfg", "procmacro2_semver_exempt"]' \
-Zhost-config -Ztarget-applies-to-host -Zunstable-options \
-- --cfg procmacro2_semver_exempt --cfg doc_cfg |
It looks like rustflags are still being explicitly excluded from all build-scripts, it seems like this feature should change this to read from the cargo/src/cargo/core/compiler/build_context/target_info.rs Lines 614 to 619 in 263b169
|
I'm currently unsure if the unstable In this project we have certain crates that are considered "modules" which may either be cross compiled as This We can't practically use cargo features for this, while native linking is mutually exclusive with wasm linking and although we can define a precedence for It's also notable that this project's runtime runs on PC and mobile and in particular we want this It would be good to understand if it's just a short-term limitation of the |
Summary
Original issue: #3349Nightly: host-config
Implementation: #9322
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#host-config
Issues: Z-host-config
The
host
key in a config file can be used pass flags to host build targets such as build scripts that must run on the host system instead of the target system when cross compiling. It supports both generic and host arch specific tables. Matching host arch tables take precedence over generic host tables.The text was updated successfully, but these errors were encountered: