-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Allow getting no_std
from the config file
#69381
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,9 +194,7 @@ pub fn check(build: &mut Build) { | |
|
||
if target.contains("-none-") || target.contains("nvptx") { | ||
if build.no_std(*target).is_none() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This function looks potentially relevant; is there a reason it's not receiving updates or so? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I should replace the calls to |
||
let target = build.config.target_config.entry(target.clone()).or_default(); | ||
|
||
target.no_std = true; | ||
build.config.target_config.entry(target.clone()).or_default(); | ||
} | ||
|
||
if build.no_std(*target) == Some(false) { | ||
|
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.
Hm, is
-none-
perhaps a bit too broad? I guess we presumably don't ship any platforms with that triple today that do have std compiled?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.
The logic is taken from
if target.contains("-none-") || target.contains("nvptx") {
. Some later refactor should just ensure there areTarget
s for all platforms specified by name, rather than config, so we can deduplicate this.