We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f22bbf commit 23a6283Copy full SHA for 23a6283
Dockerfile.hack
@@ -0,0 +1,2 @@
1
+ARG CROSS_IMAGE
2
+FROM $CROSS_IMAGE
xtask/src/build_docker_image.rs
@@ -84,7 +84,17 @@ fn locate_dockerfile(
84
} else {
85
eyre::bail!("unable to find dockerfile for target \"{target}\"");
86
};
87
- let dockerfile = dockerfile_root.join(dockerfile_name).to_utf8()?.to_string();
+ let dockerfile = if matches!(
88
+ target.triplet.as_str(),
89
+ "powerpc64-unknown-linux-gnu" | "x86_64-sun-solaris"
90
+ ) {
91
+ crate::util::project_dir(&mut <_>::default())?
92
+ .join("Dockerfile.hack")
93
+ .to_utf8()?
94
+ .to_string()
95
+ } else {
96
+ dockerfile_root.join(dockerfile_name).to_utf8()?.to_string()
97
+ };
98
Ok((target, dockerfile))
99
}
100
0 commit comments