We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c46390 commit 4a176a3Copy full SHA for 4a176a3
1 file changed
bazel/external/wasmtime.BUILD
@@ -36,12 +36,15 @@ genrule(
36
outs = [
37
"prefixed_wasmtime_c_api.a",
38
],
39
+ tools = [
40
+ "@llvm_toolchain_llvm//:objcopy"
41
+ ],
42
cmd = """
43
for symbol in $$(nm -P $(<) 2>/dev/null | grep -E ^_?wasm_ | cut -d" " -f1); do
44
echo $$symbol | sed -r 's/^(_?)(wasm_[a-z_]+)$$/\\1\\2 \\1wasmtime_\\2/' >>prefixed
45
done
46
# This should be OBJCOPY, but bazel-zig-cc doesn't define it.
- objcopy --redefine-syms=prefixed $(<) $@
47
+ $(location @llvm_toolchain_llvm//:objcopy) --redefine-syms=prefixed $(<) $@
48
""",
49
toolchains = ["@bazel_tools//tools/cpp:current_cc_toolchain"],
50
)
0 commit comments