summaryrefslogtreecommitdiffstats
path: root/remoting/client/plugin
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2015-10-13 12:15:13 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-13 19:16:07 +0000
commit543c2e871c5f5a8b5775fda8558347619026069b (patch)
treec1759ca888d56da464694fa5335f3c778e1b1ec0 /remoting/client/plugin
parent8a2c66c243ea4f6689ca1fcca1d25a68825faf22 (diff)
downloadchromium_src-543c2e871c5f5a8b5775fda8558347619026069b.zip
chromium_src-543c2e871c5f5a8b5775fda8558347619026069b.tar.gz
chromium_src-543c2e871c5f5a8b5775fda8558347619026069b.tar.bz2
Add workaround for failure to compile remoting plugin with GN
PNaCl toolchain fails to compile libyuv with -O0. Rolled libyuv to a version that always enabled optimizations in libyuv when compilging for NaCl and enabled optimization when linking the plugin. BUG=538243 Review URL: https://codereview.chromium.org/1396353003 Cr-Commit-Position: refs/heads/master@{#353815}
Diffstat (limited to 'remoting/client/plugin')
-rw-r--r--remoting/client/plugin/BUILD.gn10
1 files changed, 10 insertions, 0 deletions
diff --git a/remoting/client/plugin/BUILD.gn b/remoting/client/plugin/BUILD.gn
index 0c69ef0..9f3d8ce 100644
--- a/remoting/client/plugin/BUILD.gn
+++ b/remoting/client/plugin/BUILD.gn
@@ -7,6 +7,10 @@ assert(is_nacl,
import("//remoting/remoting_srcs.gni")
+config("enable_linker_optimization") {
+ ldflags = [ "-Wl,-O1" ]
+}
+
executable("remoting_client_plugin_newlib") {
sources =
rebase_path(remoting_srcs_gypi_values.remoting_client_plugin_sources,
@@ -15,6 +19,12 @@ executable("remoting_client_plugin_newlib") {
configs += [ "//build/config/compiler:wexit_time_destructors" ]
+ if (is_debug) {
+ # Always enable link-time optimization in debug builds to workaround
+ # crbug.com/538243 .
+ configs += [ ":enable_linker_optimization" ]
+ }
+
deps = [
"//net",
"//ppapi/cpp",