summaryrefslogtreecommitdiffstats
path: root/remoting/client
diff options
context:
space:
mode:
authormcgrathr <mcgrathr@chromium.org>2015-11-09 14:28:36 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-09 22:29:36 +0000
commit46f8e4a291285770abb2357402fe8e662e00df2e (patch)
tree724ec1ecab818ff505f45dbd93b23a426d84df27 /remoting/client
parentaa0d38670f55033607bc4d2513f877db516a4b1c (diff)
downloadchromium_src-46f8e4a291285770abb2357402fe8e662e00df2e.zip
chromium_src-46f8e4a291285770abb2357402fe8e662e00df2e.tar.gz
chromium_src-46f8e4a291285770abb2357402fe8e662e00df2e.tar.bz2
GN: Avoid nontrivial shell commands in gcc_toolchain tool("link")
The gcc_toolchain template is used for NaCl toolchains on every host OS, as well as for the native toolchains on a POSIXy OS. When the host is not POSIXy, the toolchain commands cannot use sh syntax (not even '&&'). The "link" tool does more than a simple command when 'strip' or 'postlink' variables are set, and used POSIX sh syntax to in these cases. To make this tool portable, make it use a Python script instead of those complex shell command lines. The 'postlink' variable was used only for the pnacl toolchain's "finalize" step and it can just as well use the 'strip' variable for that purpose, so simplify things by eliminating 'postlink' entirely. BUG= 512869 R=dpranke@chromium.org, dschuff@chromium.org Review URL: https://codereview.chromium.org/1432603003 Cr-Commit-Position: refs/heads/master@{#358684}
Diffstat (limited to 'remoting/client')
-rw-r--r--remoting/client/plugin/BUILD.gn15
1 files changed, 15 insertions, 0 deletions
diff --git a/remoting/client/plugin/BUILD.gn b/remoting/client/plugin/BUILD.gn
index 9f3d8ce..01432fd 100644
--- a/remoting/client/plugin/BUILD.gn
+++ b/remoting/client/plugin/BUILD.gn
@@ -5,6 +5,7 @@
assert(is_nacl,
"These targets must only be built using the untrusted NaCl toolchains.")
+import("//build/config/features.gni")
import("//remoting/remoting_srcs.gni")
config("enable_linker_optimization") {
@@ -40,3 +41,17 @@ executable("remoting_client_plugin_newlib") {
include_dirs = [ "//ppapi/lib/gl/include" ]
}
+
+if (enable_pnacl && is_debug) {
+ copy("remoting_client_plugin_newlib_debug") {
+ public_deps = [
+ ":remoting_client_plugin_newlib",
+ ]
+ sources = [
+ "$root_out_dir/exe.unstripped/remoting_client_plugin_newlib.pexe",
+ ]
+ outputs = [
+ "$root_out_dir/remoting_client_plugin_newlib.pexe.debug",
+ ]
+ }
+}