Skip to content

Commit ded5d96

Browse files
chore(interop-tests): remove static linking flags for dependency builds
When building the dependencies, we are not linking anything so we don't need to specify the static linking flags. Pull-Request: #5121.
1 parent e6b02da commit ded5d96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interop-tests/Dockerfile.chromium

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FROM chef AS builder
1414
COPY --from=planner /app/recipe.json recipe.json
1515
# Build dependencies - this is the caching Docker layer!
1616
RUN cargo chef cook --release --package interop-tests --target wasm32-unknown-unknown --recipe-path recipe.json
17-
RUN RUSTFLAGS='-C target-feature=+crt-static' cargo chef cook --release --package interop-tests --target x86_64-unknown-linux-gnu --bin wasm_ping --recipe-path recipe.json
17+
RUN cargo chef cook --release --package interop-tests --bin wasm_ping --recipe-path recipe.json
1818
# Build application
1919
COPY . .
2020
RUN wasm-pack build --target web interop-tests

interop-tests/Dockerfile.native

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN cargo chef prepare --recipe-path recipe.json
99
FROM chef AS builder
1010
COPY --from=planner /app/recipe.json recipe.json
1111
# Build dependencies - this is the caching Docker layer!
12-
RUN RUSTFLAGS='-C target-feature=+crt-static' cargo chef cook --release --package interop-tests --target $(rustc -vV | grep host | awk '{print $2}') --bin native_ping --recipe-path recipe.json
12+
RUN cargo chef cook --release --package interop-tests --bin native_ping --recipe-path recipe.json
1313
# Build application
1414
COPY . .
1515
RUN RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --package interop-tests --target $(rustc -vV | grep host | awk '{print $2}') --bin native_ping

0 commit comments

Comments
 (0)