Commit 0f1edfb
committed
build: add Darwin/macOS support
Adds platform handling for macOS:
- Guard GCC-only -Wno-stringop-truncation behind a compiler check and
silence Clang warnings promoted to errors by -Werror.
- Wire up empty RT/SOCKET libraries and test libraries for Darwin.
- Use the macOS pthread_setname_np signature (current thread only) and
skip pthread_condattr_setclock(CLOCK_MONOTONIC), which is unavailable.1 parent fd1fbf8 commit 0f1edfb
4 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
267 | 281 | | |
268 | 282 | | |
269 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3949 | 3949 | | |
3950 | 3950 | | |
3951 | 3951 | | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
3952 | 3955 | | |
| 3956 | + | |
3953 | 3957 | | |
3954 | 3958 | | |
3955 | 3959 | | |
| |||
4835 | 4839 | | |
4836 | 4840 | | |
4837 | 4841 | | |
| 4842 | + | |
| 4843 | + | |
| 4844 | + | |
4838 | 4845 | | |
| 4846 | + | |
4839 | 4847 | | |
4840 | 4848 | | |
4841 | 4849 | | |
| |||
7362 | 7370 | | |
7363 | 7371 | | |
7364 | 7372 | | |
| 7373 | + | |
7365 | 7374 | | |
| 7375 | + | |
7366 | 7376 | | |
7367 | 7377 | | |
7368 | 7378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
0 commit comments