]> git.proxmox.com Git - wasi-libc.git/commitdiff
Adjust the Makefile for LLVM 15 as of 2022-04-20
authorMike Hommey <mh@glandium.org>
Thu, 21 Apr 2022 02:52:43 +0000 (11:52 +0900)
committerDan Gohman <dev@sunfishcode.online>
Wed, 4 May 2022 21:41:10 +0000 (14:41 -0700)
Makefile
expected/wasm32-wasi/predefined-macros.txt

index b9f3c000e68e615452312d7db45c046751ec114d..98aa995bc124269057925838a534e14f8d2e33e5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -536,6 +536,8 @@ check-symbols: startup_files libc
        @# 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 __NO_MATH_ERRNO_ and a few __*WIDTH__ that are new to clang 14.
+       @# TODO: clang defined __FLT_EVAL_METHOD__ until clang 15, so we force-undefine it
+       @# for older versions.
        $(CC) $(CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \
            -isystem $(SYSROOT_INC) \
            -std=gnu17 \
@@ -556,6 +558,7 @@ check-symbols: startup_files libc
            -U__FLOAT128__ \
            -U__NO_MATH_ERRNO__ \
            -U__BITINT_MAXWIDTH__ \
+           -U__FLT_EVAL_METHOD__ -Wno-builtin-macro-redefined \
            | sed -e 's/__[[:upper:][:digit:]]*_ATOMIC_\([[:upper:][:digit:]_]*\)_LOCK_FREE/__compiler_ATOMIC_\1_LOCK_FREE/' \
            | grep -v '^#define __FLT16_' \
            | grep -v '^#define __\(BOOL\|INT_\(LEAST\|FAST\)\(8\|16\|32\|64\)\|INT\|LONG\|LLONG\|SHRT\)_WIDTH__' \
index 5248cb2e071a88d0ca76e347e253a668a164fbed..f1389b5d1a2c5601ec0e2ceeb6388976cc7d7101 100644 (file)
 #define __FLT_DENORM_MIN__ 1.40129846e-45F
 #define __FLT_DIG__ 6
 #define __FLT_EPSILON__ 1.19209290e-7F
-#define __FLT_EVAL_METHOD__ 0
 #define __FLT_HAS_DENORM__ 1
 #define __FLT_HAS_INFINITY__ 1
 #define __FLT_HAS_QUIET_NAN__ 1