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

Unified Diff: build/linux/rewrite_dirs.py

Issue 652067: Cross compiling: don't rewrite dirs if they're already prefixed.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 10 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: build/linux/rewrite_dirs.py
===================================================================
--- build/linux/rewrite_dirs.py (revision 39626)
+++ build/linux/rewrite_dirs.py (working copy)
@@ -20,7 +20,7 @@
def RewritePath(path, sysroot):
"""Rewrites a path by prefixing it with the sysroot if it is absolute."""
- if os.path.isabs(path):
+ if os.path.isabs(path) and not path.startswith(sysroot):
path = path.lstrip('/')
return os.path.join(sysroot, path)
else:
« 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