Index: build/android/gyp/strip_library_for_apk.py |
diff --git a/build/android/gyp/strip_library_for_apk.py b/build/android/gyp/strip_library_for_apk.py |
index 503f50dbb8f291538498fd62acd2c2547bb650f7..05eacfe43e2f4b24cd56e18f0139ebe92186073f 100755 |
--- a/build/android/gyp/strip_library_for_apk.py |
+++ b/build/android/gyp/strip_library_for_apk.py |
@@ -13,10 +13,12 @@ from util import build_utils |
def StripLibrary(android_strip, android_strip_args, library_path, output_path): |
- strip_cmd = ([android_strip] + |
- android_strip_args + |
- ['-o', output_path, library_path]) |
- build_utils.CheckCallDie(strip_cmd) |
+ if build_utils.IsTimeStale(output_path, [library_path]): |
+ strip_cmd = ([android_strip] + |
+ android_strip_args + |
+ ['-o', output_path, library_path]) |
+ build_utils.CheckCallDie(strip_cmd) |
+ |
def main(argv): |