mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-11 19:23:13 +00:00
Fix predefined macros check after recent clang change
This is an alternative to #75.
This commit is contained in:
parent
a413650013
commit
8df0d4cd6a
6
Makefile
6
Makefile
@ -467,9 +467,15 @@ finish: startup_files libc
|
|||||||
# which we don't need to track here. For the __*_ATOMIC_*_LOCK_FREE
|
# which we don't need to track here. For the __*_ATOMIC_*_LOCK_FREE
|
||||||
# macros, squash individual compiler names to attempt, toward keeping
|
# macros, squash individual compiler names to attempt, toward keeping
|
||||||
# these files compiler-independent.
|
# these files compiler-independent.
|
||||||
|
#
|
||||||
|
# We have to add `-isystem $(SYSROOT_INC)` because otherwise clang puts
|
||||||
|
# its builtin include path first, which produces compiler-specific
|
||||||
|
# output.
|
||||||
|
#
|
||||||
# TODO: Undefine __FLOAT128__ for now since it's not in clang 8.0.
|
# TODO: Undefine __FLOAT128__ for now since it's not in clang 8.0.
|
||||||
# TODO: Filter out __FLT16_* for now, as not all versions of clang have these.
|
# TODO: Filter out __FLT16_* for now, as not all versions of clang have these.
|
||||||
"$(WASM_CC)" $(WASM_CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \
|
"$(WASM_CC)" $(WASM_CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \
|
||||||
|
-isystem $(SYSROOT_INC) \
|
||||||
-E -dM -Wno-\#warnings \
|
-E -dM -Wno-\#warnings \
|
||||||
-D_ALL_SOURCE \
|
-D_ALL_SOURCE \
|
||||||
-U__llvm__ \
|
-U__llvm__ \
|
||||||
|
Loading…
Reference in New Issue
Block a user