[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:
Martin Fouilleul 2023-09-19 11:48:42 +02:00
parent 647565e285
commit 94ce88e272
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ def build_wasm3_lib_mac(release):
"-o", f"build/obj/{name}",
f,
], 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)