fix(fsevents): restore compat with older mac#5431
Conversation
|
There are still 2 errors: |
94cdddb to
a4e8220
Compare
|
Thanks. I fixed those errors as well. Unfortunately this means that the native watch mode will not work pre 10.13. |
|
I can confirm this now fixes the macOS build failures I was seeing. |
nojb
left a comment
There was a problem hiding this comment.
LGTM. Another possibility is to just #ifdef the whole file with __MAC_OS_X_VERSION_MAX_ALLOWED >= 101300 and make all primitives fail if that condition is not satisfied.
a4e8220 to
41c8d5c
Compare
Good point. Pushed a commit to do this. |
0c6aa76 to
4e9258f
Compare
but watch mode will require 10.13 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> ps-id: 0464F4D3-C810-4A28-9EF3-2927AD5E895A
4e9258f to
01192fd
Compare
…e-rpc, dune-rpc-lwt, dune-private-libs, dune-glob, dune-configurator, dune-build-info and dune-action-plugin (3.0.1) CHANGES: - Fix compilation on MacOS SDK < 10.13. The native watch mode is disabled in such instances (ocaml/dune#5431 fix ocaml/dune#5430, @rgrinberg) - Do no add workspace_root to `BUILD_PATH_PREFIX_MAP` for projects before 3.0 (5448, @rgrinberg) - Fix performance regression in incremental builds (ocaml/dune#5439, @snowleopard)
|
@anmonteiro This does not suffice: |
|
@rgrinberg @anmonteiro I.e. all those are 10.7 up: http://pike.lysator.liu.se/generated/manual/modref/ex/predef_3A_3A/System/FSEvents.html |
|
Ah, wait a minute, you fix is just not there in 3.6.0. I am sorry, should have not taken it for granted. Gonna add a patch. |
|
UPD. Nah, it was moved down later by somebody, which has broken the builds on old OS. So yeah, still needed to fix properly. |
kFSEventStreamEventFlagItemCloned is introduced in 10.13
@anmonteiro could you test this?