We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Build::cargo_out
1 parent 0bdcd2c commit e612cbdCopy full SHA for e612cbd
src/bootstrap/src/core/builder/tests.rs
@@ -128,6 +128,27 @@ fn validate_path_remap() {
128
});
129
}
130
131
+#[test]
132
+fn validate_cargo_output() {
133
+ let build = Build::new(configure("test", &["A"], &["A"]));
134
+
135
+ let out = build.cargo_out(
136
+ Compiler { host: TargetSelection::default(), stage: 1 },
137
+ Mode::Rustc,
138
+ TargetSelection::default(),
139
+ );
140
141
+ assert!(out.ends_with("stage1-rustc/release"));
142
143
144
145
146
+ TargetSelection::from_user("B"),
147
148
149
+ assert!(out.ends_with("stage1-rustc/B/release"));
150
+}
151
152
#[test]
153
fn test_exclude() {
154
let mut config = configure("test", &["A"], &["A"]);
0 commit comments