Skip to content

Commit 693b1ba

Browse files
committed
[Build-Script-Helper] Specify SQLite library file path directly in the SDK
1 parent 68c7dae commit 693b1ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ def build_llbuild_using_cmake(args, target, swiftc_exec, cmake_target_dir, base_
311311
llbuild_cmake_flags = base_cmake_flags + flags
312312
if args.sysroot:
313313
llbuild_cmake_flags.append('-DSQLite3_INCLUDE_DIR=%s/usr/include' % args.sysroot)
314+
# FIXME: This may be particularly hacky but CMake finds a different version of libsqlite3
315+
# on some machines. This is also Darwin-specific...
316+
llbuild_cmake_flags.append('-DSQLite3_LIBRARY=%s/usr/lib/libsqlite3.tbd' % args.sysroot)
314317
cmake_build(args, swiftc_exec, llbuild_cmake_flags, llbuild_source_dir, llbuild_build_dir)
315318

316319
def build_tsc_using_cmake(args, target, swiftc_exec, cmake_target_dir, base_cmake_flags):

0 commit comments

Comments
 (0)