-
Notifications
You must be signed in to change notification settings - Fork 234
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
cxx zig toolchain doesn't work on macOS #461
Comments
@aherrmann you inspired me to try this toolchain after our talk in Reykjavik. :) |
facebook-github-bot
pushed a commit
that referenced
this issue
Oct 27, 2023
Summary: Closes #461 Updates the Zig toolchain example to take recent Buck2 changes into account. Wrap the Zig C/C++ compiler commands in scripts to avoid quoting errors. Avoid `ln -r`, BSD `ln` does not support `-r`. Test the Zig example on CI. Pull Request resolved: #462 Reviewed By: stepancheg Differential Revision: D50738512 Pulled By: ndmitchell fbshipit-source-id: dee31a30d258669f77460ebf1a8c7f5ecd9584a7
facebook-github-bot
pushed a commit
to facebook/ocamlrep
that referenced
this issue
Oct 27, 2023
Summary: Closes facebook/buck2#461 Updates the Zig toolchain example to take recent Buck2 changes into account. Wrap the Zig C/C++ compiler commands in scripts to avoid quoting errors. Avoid `ln -r`, BSD `ln` does not support `-r`. Test the Zig example on CI. X-link: facebook/buck2#462 Reviewed By: stepancheg Differential Revision: D50738512 Pulled By: ndmitchell fbshipit-source-id: dee31a30d258669f77460ebf1a8c7f5ecd9584a7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I understand that the zig toolchain is experimental but I figured I'd report this here for others.
The zig toolchain calls
ln
with flags that don't exist on macOS. Building a hello world C file results in this error:Repro steps
git clone git@github.com:jazzdan/buck2_zig_toolchain_macos_bug.git
cd buck2_zig_toolchain_macos_bug
buck2 build //:hello
The text was updated successfully, but these errors were encountered: