wasi-libc/undefine-gcc-macros.patch
Martin Sirringhaus 3f04111a2a Accepting request 1073879 from home:aaronpuchert:llvm-next
- Update to version (wasi-sdk-)19.
- Rebase workaround-broken-makefile.patch.
- Add undefine-gcc-macros.patch: ignore new macros for now to fix
  build with Clang 16.
- Declare the package as noarch: the binaries are for WebAssembly,
  not the host architecture.

OBS-URL: https://build.opensuse.org/request/show/1073879
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/wasi-libc?expand=0&rev=8
2023-03-27 13:33:38 +00:00

17 lines
570 B
Diff

Undefine some macros because the build isn't happy about them.
diff --git a/Makefile b/Makefile
index 563f59f..6d478e9 100644
--- a/Makefile
+++ b/Makefile
@@ -688,6 +688,10 @@ check-symbols: startup_files libc
-U__clang_wide_literal_encoding__ \
-U__wasm_mutable_globals__ \
-U__wasm_sign_ext__ \
+ -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 \
+ -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 \
+ -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 \
+ -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 \
-U__GNUC__ \
-U__GNUC_MINOR__ \
-U__GNUC_PATCHLEVEL__ \