Skip to content

Commit 07d833a

Browse files
committed
Strip libsqlite_tool
1 parent 46f2726 commit 07d833a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/vend.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,13 @@ def do_build(what: set[str], verbose: bool, fail_fast: bool = False):
689689
so_link_flags = ["-dynamiclib", "-install_name", f"@rpath/lib{SQLITE_LIB_NAME}.dylib"]
690690
compiler.linker_so = [l for l in linker_so_orig if l != "-bundle"]
691691

692+
# this ensures the library has debug stripped
693+
if link_extra_preargs:
694+
so_link_flags = (so_link_flags or []) + link_extra_preargs
695+
692696
# we have to figure out the library filename
693697
before = set(build_dir.glob("*"))
698+
694699
compiler.link_shared_lib(lib_objs, SQLITE_LIB_NAME, output_dir=str(build_dir), extra_preargs=so_link_flags)
695700
if compiler.compiler_type == "unix":
696701
compiler.linker_so = linker_so_orig

0 commit comments

Comments
 (0)