[dart2wasm] Roll to binaryen to same version as g3 (which is much newer)

Change-Id: I7517463aa311335932e0d8b304df852326798ce0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/350582
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
This commit is contained in:
Martin Kustermann 2024-02-09 14:23:37 +00:00 committed by Commit Queue
parent 9d39c79471
commit e7e681264a
3 changed files with 26 additions and 13 deletions

2
DEPS
View file

@ -96,7 +96,7 @@ vars = {
### /third_party/ dependencies
# Prefer to use hashes of binaryen that have been reviewed & rolled into g3.
"binaryen_rev" : "a51bd6df919a5b79574f0996a760cc20cb05697e",
"binaryen_rev" : "f172920b90f9745494c2efeb1696468fa26be506",
"boringssl_gen_rev": "9c7294fd58261a79794f5afaa26598cf1442ad20",
"boringssl_rev": "d24a38200fef19150eef00cad35b138936c08767",
"browser-compat-data_tag": "ac8cae697014da1ff7124fba33b0b4245cc6cd1b", # v1.0.22

View file

@ -5,12 +5,22 @@
import("../../sdk_args.gni")
config("binaryen_flags") {
if (is_clang) {
cflags = [ "-Wno-unused-but-set-parameter" ]
} else if (!is_win) {
cflags = [
"-Wno-unused-variable",
cflags = []
if (is_clang || !is_win) {
cflags += [
"-Wno-deprecated-declarations",
"-Wno-header-hygiene",
"-Wno-unused-but-set-parameter",
"-Wno-unused-function",
"-Wno-unused-private-field",
"-Wno-pessimizing-move",
"-Wno-inconsistent-missing-override",
"-Wno-sign-compare",
"-Wno-range-loop-construct",
]
}
if (!is_clang && !is_win) {
cflags += [
# Bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465#c16 triggered by
# https://github.com/WebAssembly/binaryen/blob/cdb7aeab40b4c522de20b242019f7e88641445d5/src/wasm/wasm-type.cpp#L530.
"-Wno-maybe-uninitialized",
@ -52,12 +62,14 @@ source_set("binaryen_sources") {
"src/src/analysis",
"src/src/asmjs",
"src/src/cfg",
"src/src/emscripten-optimizer",
"src/src/ir",
"src/src/parser",
"src/src/passes",
"src/src/support",
"src/src/wasm",
"src/src/tools/fuzzing",
"src/src/emscripten-optimizer",
"src/src/wasm",
"src/third_party/llvm-project",
]
# We avoid listing all sources manually, this means when updating
@ -75,7 +87,10 @@ source_set("binaryen_sources") {
}
}
include_dirs = [ "src/src" ]
include_dirs = [
"src/src",
"src/third_party/llvm-project/include",
]
# Ensure WasmIntrinsics.cpp/config.h files are generated.
deps = [ ":generate_needed_files" ]

View file

@ -6,12 +6,10 @@
import os
import sys
def main(args):
for file in os.listdir(args[0]):
if file.endswith('.cpp') or file.endswith('.h'):
if not "suffix_tree" in file:
print(file)
print(file)
if __name__ == '__main__':