Commit d8267e1a authored by Samuel Huang's avatar Samuel Huang Committed by Commit Bot

[SuperSize] Update wasmbuild.patch for Caspian.

This CL adds adjustment to /build/config/compiler/BUILD.gn, to exclude
  ldflags += [ "-Wl,--no-call-graph-profile-sort" ]
for WASM. The flag usage was added in http://crrev.com/c/2332591, but
it's not yet supported by wasm-ld.

Change-Id: I04b1e81569e23f6a0b6f44b5e5544e30a3b0433d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359401
Auto-Submit: Samuel Huang <huangs@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#798613}
parent f92f92ac
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
index 59dace167eef..ebbe3f37d101 100644
index e011502180b5..9e55fcd6c74f 100644
--- a/build/config/BUILDCONFIG.gn
+++ b/build/config/BUILDCONFIG.gn
@@ -291,10 +291,11 @@ is_ios = current_os == "ios"
......@@ -16,10 +16,10 @@ index 59dace167eef..ebbe3f37d101 100644
# =============================================================================
# SOURCES FILTERS
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index f4ba837449b5..0fe4f8247c68 100644
index 0b5de5cd7173..ff761c9b46b3 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -578,6 +578,19 @@ config("compiler") {
@@ -581,6 +581,19 @@ config("compiler") {
ldflags += [ "-stdlib=libc++" ]
}
......@@ -39,7 +39,16 @@ index f4ba837449b5..0fe4f8247c68 100644
# Add flags for link-time optimization. These flags enable
# optimizations/transformations that require whole-program visibility at link
# time, so they need to be applied to all translation units, and we may end up
@@ -1495,7 +1508,8 @@ config("default_warnings") {
@@ -704,7 +717,7 @@ config("compiler") {
if (use_lld) {
if (is_win) {
ldflags += [ "/call-graph-profile-sort:no" ]
- } else {
+ } else if (!is_wasm) {
ldflags += [ "-Wl,--no-call-graph-profile-sort" ]
}
}
@@ -1510,7 +1523,8 @@ config("default_warnings") {
cflags += [ "-Wno-nonportable-include-path" ]
}
......@@ -49,7 +58,7 @@ index f4ba837449b5..0fe4f8247c68 100644
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
# recognize.
cflags += [
@@ -2257,6 +2271,9 @@ config("symbols") {
@@ -2275,6 +2289,9 @@ config("symbols") {
"-debug-info-kind=constructor",
]
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment