Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POCL: Set the SDKROOT during __init__ to make Clang_jll work. #9223

Merged
merged 1 commit into from
Aug 9, 2024
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
6 changes: 6 additions & 0 deletions P/pocl/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ init_block = """
# Register this driver with OpenCL_jll
if OpenCL_jll.is_available()
push!(OpenCL_jll.drivers, libpocl)

# XXX: Clang_jll does not have a functional clang binary on macOS,
# as it's configured without a default sdkroot (see #9221)
if Sys.isapple()
ENV["SDKROOT"] = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
end
end
"""

Expand Down