We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b8b396 + 8b8e706 commit 53a4c3bCopy full SHA for 53a4c3b
compiler/rustc_llvm/build.rs
@@ -70,7 +70,7 @@ fn main() {
70
let host = env::var("HOST").expect("HOST was not set");
71
let is_crossed = target != host;
72
73
- let mut optional_components = vec![
+ let optional_components = &[
74
"x86",
75
"arm",
76
"aarch64",
@@ -85,6 +85,7 @@ fn main() {
85
"sparc",
86
"nvptx",
87
"hexagon",
88
+ "riscv",
89
];
90
91
let mut version_cmd = Command::new(&llvm_config);
@@ -94,13 +95,9 @@ fn main() {
94
95
let (major, _minor) = if let (Some(major), Some(minor)) = (parts.next(), parts.next()) {
96
(major, minor)
97
} else {
- (6, 0)
98
+ (8, 0)
99
};
100
- if major > 6 {
101
- optional_components.push("riscv");
102
- }
103
-
104
let required_components = &[
105
"ipo",
106
"bitreader",
0 commit comments