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 3ad5a6c commit 95545a5Copy full SHA for 95545a5
Dockerfile
@@ -141,12 +141,10 @@ ARG TARGET=${target_arch_rust}
141
ARG PKG_CONFIG_PATH=/usr/lib/${target_arch}/pkgconfig
142
ARG COPTFLAGS="-O2 ${COPTFLAGS}"
143
144
-#TODO: find a way to set these in ENV isntead of writing into config.toml
145
-RUN mkdir -p .cargo && tee .cargo/config.toml <<EOF
146
-[target.${target_arch_rust}]
147
-linker = "${target_arch}-gcc"
148
-rustflags = ["-C", "target-cpu=generic"]
149
-EOF
+ARG CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=${CC}
+ARG CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=${CC}
+ARG CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=${CC}
+ARG RUSTFLAGS="-C target-cpu=generic"
150
151
WORKDIR /opt
152
0 commit comments