Skip to content

Commit 609960c

Browse files
authored
rustc_flags linker flag no longer needed for s390x (#329)
Signed-off-by: Konstantin Maksimov <[email protected]>
1 parent 0f5a0e7 commit 609960c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bazel/wasm.bzl

+1-6
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ wasi_rust_binary_rule = rule(
7777
attrs = _wasm_attrs(wasi_rust_transition),
7878
)
7979

80-
def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], rustc_flags = [], **kwargs):
80+
def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], **kwargs):
8181
wasm_name = "_wasm_" + name.replace(".", "_")
8282
kwargs.setdefault("visibility", ["//visibility:public"])
8383

@@ -87,11 +87,6 @@ def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], rustc_flag
8787
crate_type = "cdylib",
8888
out_binary = True,
8989
tags = ["manual"],
90-
# Rust doesn't distribute rust-lld for Linux/s390x.
91-
rustc_flags = rustc_flags + select({
92-
"//bazel:linux_s390x": ["-C", "linker=/usr/bin/lld"],
93-
"//conditions:default": [],
94-
}),
9590
**kwargs
9691
)
9792

0 commit comments

Comments
 (0)