mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
build-script: find sqlite header
User-installed package headers are installed to `/usr/local/include` on FreeBSD. The build system should tell the compiler where the additional headers are located.
This commit is contained in:
@@ -137,6 +137,11 @@ def get_swiftpm_options(swift_exec: str, args: argparse.Namespace, suppress_verb
|
||||
swiftpm_args += [
|
||||
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/android',
|
||||
]
|
||||
elif '-freebsd' in build_target:
|
||||
# pkg installs packages to /usr/local/include on FreeBSD
|
||||
# Required for SwiftPM to find sqlite
|
||||
swiftpm_args += ['-Xcxx', '-I', '-Xcxx', '/usr/local/include',
|
||||
'-Xswiftc', '-I', '-Xswiftc', '/usr/local/include']
|
||||
elif not build_os.startswith('macosx'):
|
||||
# Library rpath for swift, dispatch, Foundation, etc. when installing
|
||||
swiftpm_args += [
|
||||
|
||||
Reference in New Issue
Block a user