Skip to content

Commit 3b87a60

Browse files
committed
Adjust Makefile for LLVM trunk (16) as of 2022-10-25
llvm/llvm-project@1e4e243 enabled sign-ext and mutable-globals by default, which adds corresponding __wasm_-prefixed #defines.
1 parent 21d93b9 commit 3b87a60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,8 @@ check-symbols: startup_files libc
632632
@# TODO: Filter out __NO_MATH_ERRNO_ and a few __*WIDTH__ that are new to clang 14.
633633
@# TODO: clang defined __FLT_EVAL_METHOD__ until clang 15, so we force-undefine it
634634
@# for older versions.
635+
@# TODO: Undefine __wasm_mutable_globals__ and __wasm_sign_ext__, that are new to
636+
@# clang 16.
635637
$(CC) $(CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \
636638
-isystem $(SYSROOT_INC) \
637639
-std=gnu17 \
@@ -645,6 +647,8 @@ check-symbols: startup_files libc
645647
-U__clang_version__ \
646648
-U__clang_literal_encoding__ \
647649
-U__clang_wide_literal_encoding__ \
650+
-U__wasm_mutable_globals__ \
651+
-U__wasm_sign_ext__ \
648652
-U__GNUC__ \
649653
-U__GNUC_MINOR__ \
650654
-U__GNUC_PATCHLEVEL__ \

0 commit comments

Comments
 (0)