Skip to content

Commit 16a6940

Browse files
authored
Adjust Makefile for LLVM trunk (16) as of 2023-01-05 (#379)
llvm/llvm-project@d227c3b added __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros.
1 parent a1c7c2c commit 16a6940

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ check-symbols: startup_files libc
668668
@# TODO: Undefine __FLOAT128__ for now since it's not in clang 8.0.
669669
@# TODO: Filter out __FLT16_* for now, as not all versions of clang have these.
670670
@# TODO: Filter out __NO_MATH_ERRNO_ and a few __*WIDTH__ that are new to clang 14.
671+
@# TODO: Filter out __GCC_HAVE_SYNC_COMPARE_AND_SWAP_* that are new to clang 16.
671672
@# TODO: clang defined __FLT_EVAL_METHOD__ until clang 15, so we force-undefine it
672673
@# for older versions.
673674
@# TODO: Undefine __wasm_mutable_globals__ and __wasm_sign_ext__, that are new to
@@ -700,6 +701,7 @@ check-symbols: startup_files libc
700701
| sed -e 's/__GNUC_VA_LIST $$/__GNUC_VA_LIST 1/' \
701702
| grep -v '^#define __FLT16_' \
702703
| grep -v '^#define __\(BOOL\|INT_\(LEAST\|FAST\)\(8\|16\|32\|64\)\|INT\|LONG\|LLONG\|SHRT\)_WIDTH__' \
704+
| grep -v '^#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_\(1\|2\|4\|8\)' \
703705
> "$(SYSROOT_SHARE)/predefined-macros.txt"
704706

705707
# Check that the computed metadata matches the expected metadata.

0 commit comments

Comments
 (0)