Commit aac9475
committed
fix: add comprehensive workaround for conda libc++ on macOS
The conda-provided libc++ on macOS has compatibility issues with
ptrdiff_t and other standard library types due to _LIBCPP_USING_IF_EXISTS
failing to resolve types from the global namespace.
Changes:
- Include stddef.h (C header) before C++ headers to ensure types are defined
- Add _LIBCPP_DISABLE_AVAILABILITY flag on macOS to disable availability checks
that can conflict with conda environments
This resolves the 'reference to unresolved using declaration' error for
ptrdiff_t in char_traits.h when building with conda on macOS.
References:
- conda/conda#11196
- llvm/llvm-project#542331 parent 643a30f commit aac9475
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
0 commit comments