]> git.proxmox.com Git - wasi-libc.git/commitdiff
Adjust Makefile for LLVM trunk (16) as of 2023-01-05 (#379)
authorMike Hommey <mh@glandium.org>
Tue, 10 Jan 2023 00:21:58 +0000 (09:21 +0900)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 Aug 2023 10:24:08 +0000 (12:24 +0200)
https://github.com/llvm/llvm-project/commit/d227c3b68cf5c236902c9ff4fdf8b719c9a3dd26
added __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros.

Makefile

index 46229f930af8a28fc5e033932072c713e158a967..27f6760f976a4ccf987c2c1ed3a133864d5492ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -668,6 +668,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.
+       @# TODO: Filter out __GCC_HAVE_SYNC_COMPARE_AND_SWAP_* that are new to clang 16.
        @# TODO: clang defined __FLT_EVAL_METHOD__ until clang 15, so we force-undefine it
        @# for older versions.
        @# TODO: Undefine __wasm_mutable_globals__ and __wasm_sign_ext__, that are new to
@@ -700,6 +701,7 @@ check-symbols: startup_files libc
            | sed -e 's/__GNUC_VA_LIST $$/__GNUC_VA_LIST 1/' \
            | grep -v '^#define __FLT16_' \
            | grep -v '^#define __\(BOOL\|INT_\(LEAST\|FAST\)\(8\|16\|32\|64\)\|INT\|LONG\|LLONG\|SHRT\)_WIDTH__' \
+           | grep -v '^#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_\(1\|2\|4\|8\)' \
            > "$(SYSROOT_SHARE)/predefined-macros.txt"
 
        # Check that the computed metadata matches the expected metadata.