Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: build/build_nexe.py

Issue 11576019: build_nexe.py: Allow --strip-debug for archives (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: period Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/build_nexe.py
diff --git a/build/build_nexe.py b/build/build_nexe.py
index 7c068f78efa90ab199a93d9ed6ceb36313f9d107..e4e59582eb7a5dcc4882f39bcdfd7a0624784b93 100644
--- a/build/build_nexe.py
+++ b/build/build_nexe.py
@@ -495,7 +495,11 @@ class Builder(object):
if self.strip_all or self.strip_debug:
self.Strip(out)
elif self.outtype in ['nlib', 'plib']:
- self.Archive(srcs)
+ out = self.Archive(srcs)
+ if self.strip_debug:
+ self.Strip(out)
+ elif self.strip_all:
+ ErrOut('FAILED: --strip-all on libs will result in unusable libs.')
else:
ErrOut('FAILED: Unknown outtype %s:\n' % (self.outtype))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698