Index: build/android/gyp/create_device_library_links.py |
diff --git a/build/android/gyp/create_device_library_links.py b/build/android/gyp/create_device_library_links.py |
index 5b8ee2b021613941199d38dd6e808deb8d08a33a..5bfde5f63301d024acff6acc4c04f2a81177d8e4 100755 |
--- a/build/android/gyp/create_device_library_links.py |
+++ b/build/android/gyp/create_device_library_links.py |
@@ -76,6 +76,11 @@ def TriggerSymlinkScript(options): |
def main(argv): |
+ if not build_utils.IsDeviceReady(): |
+ build_utils.PrintBigWarning( |
+ 'No device attached. Skipping creating symlinks.') |
+ return |
+ |
parser = optparse.OptionParser() |
parser.add_option('--apk', help='Path to the apk.') |
parser.add_option('--script-host-path', |