Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions utils/build-script
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,16 @@ class BuildScriptInvocation(object):
args.install_prefix),
"--host-lipo", toolchain.lipo,
]

# TJ adding this from https://github.com/apple/swift/pull/33939/files
# To fix issue with clang/math.h.
# For additional isolation, disable pkg-config. Homebrew's pkg-config
# prioritizes CommandLineTools paths, resulting in compile errors.
args.extra_cmake_options += [
'-DCMAKE_IGNORE_PATH=/usr/lib;/usr/local/lib;/lib',
'-DPKG_CONFIG_EXECUTABLE=/usr/bin/false',
]
# End of TJ edit

if toolchain.libtool is not None:
impl_args += [
Expand Down