Commit 76a694d
committed
fix: add -nostdinc++ -stdlib=libc++ for Clang --no-default-config
When bypassing clang++.cfg, the cfg's -nostdinc++ and -stdlib=libc++
flags are also stripped. Without -nostdinc++, Clang may find host
libstdc++ headers before the payload's libc++ headers. Without
-stdlib=libc++, Clang defaults to libstdc++ runtime.
Also remove the /usr/include fallback for linux-headers — mixing
host headers with xpkg glibc causes bits/wordsize.h conflicts.1 parent 2baa031 commit 76a694d
3 files changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | 345 | | |
352 | 346 | | |
353 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
0 commit comments