mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Ohos: include build id in ohos built binary (#38215)
add link-arg for ohos to include build id in its ELF binary. This could enable us to do debugging and size checking more easily. Testing: No test needed. Fixes: N/A cc @jschwe Signed-off-by: rayguo17 <tin.tun.aung1@huawei.com>
This commit is contained in:
parent
6417d3077b
commit
7f6d4825cf
1 changed files with 6 additions and 1 deletions
|
@ -374,7 +374,12 @@ class OpenHarmonyTarget(CrossBuildTarget):
|
||||||
# rustc linker
|
# rustc linker
|
||||||
env[f"CARGO_TARGET_{rust_target_triple.upper()}_LINKER"] = ndk_clang
|
env[f"CARGO_TARGET_{rust_target_triple.upper()}_LINKER"] = ndk_clang
|
||||||
|
|
||||||
link_args = ["-fuse-ld=lld", f"--target={clang_target_triple}", f"--sysroot={ohos_sysroot_posix}"]
|
link_args = [
|
||||||
|
"-fuse-ld=lld",
|
||||||
|
f"--target={clang_target_triple}",
|
||||||
|
f"--sysroot={ohos_sysroot_posix}",
|
||||||
|
"-Wl,--build-id",
|
||||||
|
]
|
||||||
|
|
||||||
env["HOST_CFLAGS"] = ""
|
env["HOST_CFLAGS"] = ""
|
||||||
env["HOST_CXXFLAGS"] = ""
|
env["HOST_CXXFLAGS"] = ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue