From dfecba3f069a761dbabad7da700241cdf8820cb0 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 13 Nov 2024 03:37:11 +0900 Subject: [PATCH] Adjust Makefile for LLVM trunk (20) as of 2024-10-25 (#546) https://github.com/llvm/llvm-project/commit/1bc2cd98c58a1059170dc38697c7a29a8e21160b --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index e787087..43fa836 100644 --- a/Makefile +++ b/Makefile @@ -984,6 +984,8 @@ check-symbols: startup_files libc @# clang 16 for -mcpu=generic. @# TODO: Undefine __wasm_multivalue__ and __wasm_reference_types__, that are new to @# clang 19 for -mcpu=generic. + @# TODO: Undefine __wasm_nontrapping_fptoint__ and __wasm_bulk_memory__, that are + @# new to clang 20. @# TODO: As of clang 16, __GNUC_VA_LIST is #defined without a value. $(CC) $(CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \ -isystem $(SYSROOT_INC) \ @@ -1002,6 +1004,8 @@ check-symbols: startup_files libc -U__wasm_sign_ext__ \ -U__wasm_multivalue__ \ -U__wasm_reference_types__ \ + -U__wasm_nontrapping_fptoint__ \ + $(if $(filter-out expected/wasm32-wasip1-threads,$(EXPECTED_TARGET_DIR)),-U__wasm_bulk_memory__) \ -U__GNUC__ \ -U__GNUC_MINOR__ \ -U__GNUC_PATCHLEVEL__ \