Skip to content

Commit f3f6b74

Browse files
committed
WASM: fix build patch
1 parent 21dba8a commit f3f6b74

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

patches/wasm/build.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/config/BUILDCONFIG.gn b/config/BUILDCONFIG.gn
2-
index 7831109..ae41e37 100644
2+
index 147226d..92ef627 100644
33
--- a/config/BUILDCONFIG.gn
44
+++ b/config/BUILDCONFIG.gn
5-
@@ -280,10 +280,7 @@ if (target_os == "android") {
5+
@@ -287,10 +287,7 @@ if (target_os == "android") {
66
} else if (target_os == "zos") {
77
_default_toolchain = "//build/toolchain/zos:$target_cpu"
88
} else if (target_os == "emscripten") {
@@ -15,10 +15,10 @@ index 7831109..ae41e37 100644
1515
assert(false, "Unsupported target_os: $target_os")
1616
}
1717
diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn
18-
index 59942a3..fb6a067 100644
18+
index 5103543..6bf11a8 100644
1919
--- a/config/compiler/BUILD.gn
2020
+++ b/config/compiler/BUILD.gn
21-
@@ -306,6 +306,8 @@ config("compiler") {
21+
@@ -309,6 +309,8 @@ config("compiler") {
2222
configs += [ "//build/config/aix:compiler" ]
2323
} else if (current_os == "zos") {
2424
configs += [ "//build/config/zos:compiler" ]
@@ -27,10 +27,10 @@ index 59942a3..fb6a067 100644
2727
}
2828

2929
configs += [
30-
@@ -393,7 +395,7 @@ config("compiler") {
30+
@@ -395,7 +397,7 @@ config("compiler") {
3131
} else if (is_chromeos) {
3232
cflags += [ "-fstack-protector-strong" ]
33-
} else if ((is_posix && !is_nacl) || is_fuchsia) {
33+
} else if (is_posix || is_fuchsia) {
3434
- if (current_os != "aix") {
3535
+ if (current_os != "aix" && current_os != "emscripten") {
3636
# Not available on aix.

0 commit comments

Comments
 (0)