-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
libc on osx not found #5236
Comments
|
reductions
|
See ziglang/fetch-them-macos-headers#2 for more details. The path forward looks like one of the following: * Ony provide headers for the oldest supported macOS (currently 10.13 but soon to be bumped to 10.14). * Provide headers for multiple versions, and select based on the Zig target OS version range minimum. * Don't try to provide macOS headers. If we don't tackle the version problem, we would have to re-introduce the ability to detect and depend on native system headers if we wanted to support C/C++ code that used newer OS definitions. This patch also adds support for `#include <mach/mach_time.h>`. Also related: #5236
The good news is with 2eee058 the example in the OP works: I just built zstd with zig cc. In fact, I can even cross compile it targeting macOS, but the executable isn't viable until #3295 is solved. The bad news is that this is a 0.8.0 milestone issue, and won't be fixed for 0.7.1 because it depends on some non-trivial improvements to Zig's ability to provide macOS C header files. Will try @mikdusan's reduction next. |
I don't think we can make
|
The text was updated successfully, but these errors were encountered: