See
|
let fam = if let Some(ref fam) = sess.target.target.options.target_family { |
|
Symbol::intern(fam) |
|
} else if sess.target.target.options.is_like_windows { |
|
Symbol::intern("windows") |
|
} else { |
|
Symbol::intern("unix") |
|
}; |
This is very unhelpful for bare-metal targets where there is no target family. Is there code that relies on it defaulting to unix if it is unspecified?
CC @arcnmx
See
rust/src/librustc/session/config.rs
Lines 946 to 952 in ebeee0e
This is very unhelpful for bare-metal targets where there is no target family. Is there code that relies on it defaulting to unix if it is unspecified?
CC @arcnmx