We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a413650 commit 8df0d4cCopy full SHA for 8df0d4c
1 file changed
Makefile
@@ -467,9 +467,15 @@ finish: startup_files libc
467
# which we don't need to track here. For the __*_ATOMIC_*_LOCK_FREE
468
# macros, squash individual compiler names to attempt, toward keeping
469
# these files compiler-independent.
470
+ #
471
+ # We have to add `-isystem $(SYSROOT_INC)` because otherwise clang puts
472
+ # its builtin include path first, which produces compiler-specific
473
+ # output.
474
475
# TODO: Undefine __FLOAT128__ for now since it's not in clang 8.0.
476
# TODO: Filter out __FLT16_* for now, as not all versions of clang have these.
477
"$(WASM_CC)" $(WASM_CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \
478
+ -isystem $(SYSROOT_INC) \
479
-E -dM -Wno-\#warnings \
480
-D_ALL_SOURCE \
481
-U__llvm__ \
0 commit comments