Commit 695a376
fix(deps): disable Assimp bundled zlib on macOS to fix build with SDK 15+
Assimp 5.4.3's bundled zlib defines `#define fdopen(fd,mode) NULL` in
contrib/zlib/zutil.h:147. On macOS 15+ the SDK's `_stdio.h` uses
`__DARWIN_ALIAS(fdopen)`, which expands through that macro and causes a
C preprocessor parse error, breaking the "Build Deps" CI step on both
arm64 and x86_64.
Fix: only build the bundled zlib on Windows (where it is needed);
on macOS and Linux use the system-provided zlib instead.
Fixes the CI failures in #10767.
Co-Authored-By: Abdel Gomez-Perez <nabdel07@icloud.com>1 parent e150b50 commit 695a376
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 | | |
2 | 11 | | |
3 | 12 | | |
| |||
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
14 | | - | |
| 23 | + | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
| |||
0 commit comments