forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1800150 - Use the clang-trunk-based wasi sysroot on the toolchain…
…s branch. r=firefox-build-system-reviewers,ahochheiden And because it's built against clang-trunk, it needs the same patch as compiler-rt-wasi. Differential Revision: https://phabricator.services.mozilla.com/D161838
- Loading branch information
Showing
4 changed files
with
35 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Patch from https://github.com/WebAssembly/wasi-libc/pull/344. | ||
|
||
diff --git a/src/wasi-libc/Makefile b/src/wasi-libc/Makefile | ||
index 44acdee..6e01bed 100644 | ||
--- a/src/wasi-libc/Makefile | ||
+++ b/src/wasi-libc/Makefile | ||
@@ -556,6 +556,8 @@ check-symbols: startup_files libc | ||
-U__clang_version__ \ | ||
-U__clang_literal_encoding__ \ | ||
-U__clang_wide_literal_encoding__ \ | ||
+ -U__wasm_mutable_globals__ \ | ||
+ -U__wasm_sign_ext__ \ | ||
-U__GNUC__ \ | ||
-U__GNUC_MINOR__ \ | ||
-U__GNUC_PATCHLEVEL__ \ | ||
@@ -565,6 +567,7 @@ check-symbols: startup_files libc | ||
-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/' \ | ||
+ | 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__' \ | ||
> "$(SYSROOT_SHARE)/predefined-macros.txt" |