]> git.proxmox.com Git - wasi-libc.git/commitdiff
Adjust the Makefile for LLVM 14
authorMike Hommey <mh@glandium.org>
Fri, 8 Apr 2022 01:38:53 +0000 (10:38 +0900)
committerDan Gohman <dev@sunfishcode.online>
Wed, 13 Apr 2022 20:02:21 +0000 (13:02 -0700)
Makefile

index b85495294258b6313c6608353eba3b00771cb586..b9f3c000e68e615452312d7db45c046751ec114d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -535,6 +535,7 @@ 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.
        $(CC) $(CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \
            -isystem $(SYSROOT_INC) \
            -std=gnu17 \
@@ -553,8 +554,11 @@ check-symbols: startup_files libc
            -U__GNUC_PATCHLEVEL__ \
            -U__VERSION__ \
            -U__FLOAT128__ \
+           -U__NO_MATH_ERRNO__ \
+           -U__BITINT_MAXWIDTH__ \
            | 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__' \
            > "$(SYSROOT_SHARE)/predefined-macros.txt"
 
        # Check that the computed metadata matches the expected metadata.