Index: build/android/gyp/create_java_binary_script.py |
diff --git a/build/android/gyp/create_java_binary_script.py b/build/android/gyp/create_java_binary_script.py |
index 721e96f8cfe6e569f78f48424060936fc68da2dd..2b6553d0bdaa8e16bee0da4aac746df805240218 100755 |
--- a/build/android/gyp/create_java_binary_script.py |
+++ b/build/android/gyp/create_java_binary_script.py |
@@ -37,6 +37,7 @@ if os.getcwd() != self_dir: |
classpath = [os.path.join(offset, p) for p in classpath] |
bootclasspath = [os.path.join(offset, p) for p in bootclasspath] |
java_cmd = ["java"] |
+{noverify_flag} |
if bootclasspath: |
java_cmd.append("-Xbootclasspath/p:" + ":".join(bootclasspath)) |
java_cmd.extend( |
@@ -58,8 +59,16 @@ def main(argv): |
help='Classpath for running the jar.') |
parser.add_option('--bootclasspath', action='append', default=[], |
help='zip/jar files to add to bootclasspath for java cmd.') |
+ parser.add_option('--noverify', action='store_true', |
+ help='JVM flag: noverify.') |
+ |
options, extra_program_args = parser.parse_args(argv) |
+ if (options.noverify): |
+ noverify_flag = 'java_cmd.append("-noverify")' |
+ else: |
+ noverify_flag = '' |
+ |
classpath = [options.jar_path] |
for cp_arg in options.classpath: |
classpath += build_utils.ParseGypList(cp_arg) |
@@ -78,7 +87,8 @@ def main(argv): |
bootclasspath=('"%s"' % '", "'.join(bootclasspath) |
if bootclasspath else ''), |
main_class=options.main_class, |
- extra_program_args=repr(extra_program_args))) |
+ extra_program_args=repr(extra_program_args), |
+ noverify_flag=noverify_flag)) |
os.chmod(options.output, 0750) |