[macos] use libtool instead of ar when building wasm3 lib, and pass -no_warning_for_no_symbols because translation units in wasm3 don't have symbols
This commit is contained in:
parent
647565e285
commit
94ce88e272
|
@ -290,7 +290,7 @@ def build_wasm3_lib_mac(release):
|
||||||
"-o", f"build/obj/{name}",
|
"-o", f"build/obj/{name}",
|
||||||
f,
|
f,
|
||||||
], check=True)
|
], check=True)
|
||||||
subprocess.run(["ar", "-rcs", "build/lib/libwasm3.a", *glob.glob("build/obj/*.o")], check=True)
|
subprocess.run(["libtool", "-static", "-o", "build/lib/libwasm3.a", "-no_warning_for_no_symbols", *glob.glob("build/obj/*.o")], check=True)
|
||||||
subprocess.run(["rm", "-rf", "build/obj"], check=True)
|
subprocess.run(["rm", "-rf", "build/obj"], check=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue