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

Unified Diff: pydir/szbuild.py

Issue 605283002: Subzero: Change szbuild.py to prefer Subzero by default. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make the default include logic more intuitive Created 6 years, 3 months 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: pydir/szbuild.py
diff --git a/pydir/szbuild.py b/pydir/szbuild.py
index ab67f027f7f024b205f02c2dabef032f0cad5f70..63d7db0f463e313c066c89cd5d3c3b699d99fd59 100755
--- a/pydir/szbuild.py
+++ b/pydir/szbuild.py
@@ -219,9 +219,9 @@ def ProcessPexe(args, pexe, exe):
re_include = re.compile(re_include_str)
re_exclude = re.compile(re_exclude_str)
# If a symbol doesn't explicitly match re_include or re_exclude,
- # the default MatchSymbol() result is False, unless some --exclude
- # args are provided and no --include args are provided.
- default_match = len(args.exclude) and not len(args.include)
+ # the default MatchSymbol() result is True, unless some --include
+ # args are provided.
+ default_match = not len(args.include)
whitelist_has_items = False
with open(whitelist_sz_unescaped, 'w') as f:
« 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