summaryrefslogtreecommitdiffstats
path: root/build/toolchain/nacl
diff options
context:
space:
mode:
authormcgrathr <mcgrathr@chromium.org>2015-10-09 14:23:02 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-09 21:23:50 +0000
commit0b9de3622acdbc1fba625094b369090f65145b78 (patch)
tree198fec83c66d9ee3c06c28ffb482a72f2a8d8882 /build/toolchain/nacl
parent0fb1401e650b5aec91d9fef4d3b42598ddff13f4 (diff)
downloadchromium_src-0b9de3622acdbc1fba625094b369090f65145b78.zip
chromium_src-0b9de3622acdbc1fba625094b369090f65145b78.tar.gz
chromium_src-0b9de3622acdbc1fba625094b369090f65145b78.tar.bz2
GN: Fix NaCl IRT build options
The NaCl IRT is a special case and needs to be built with specific code-generation and optimization options (we also always want debug symbols). This plumbs through an is_nacl_irt variable that configs can test, and uses that to make the standard configs do the right thing. The resulting compiler and linker flags are a close approximation of what GYP uses. BUG= 531702 R=dpranke@chromium.org, dschuff@chromium.org Review URL: https://codereview.chromium.org/1397953002 Cr-Commit-Position: refs/heads/master@{#353385}
Diffstat (limited to 'build/toolchain/nacl')
-rw-r--r--build/toolchain/nacl/BUILD.gn4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/toolchain/nacl/BUILD.gn b/build/toolchain/nacl/BUILD.gn
index 6345cbc..5329f18 100644
--- a/build/toolchain/nacl/BUILD.gn
+++ b/build/toolchain/nacl/BUILD.gn
@@ -121,6 +121,10 @@ template("nacl_irt_toolchain") {
ar = toolprefix + "ar"
readelf = toolprefix + "readelf"
+ # Always build the IRT with full debugging symbols, regardless of
+ # how Chromium itself is being built (or other NaCl executables).
+ symbol_level = 2
+
# Some IRT implementations (notably, Chromium's) contain C++ code,
# so we need to link w/ the C++ linker.
ld = "${python_path} ${link_irt} --tls-edit=${tls_edit} --link-cmd=${cxx} --readelf-cmd=${readelf}"