summaryrefslogtreecommitdiffstats
path: root/runtime/parsed_options.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-07-25 02:32:19 -0700
committerAndreas Gampe <agampe@google.com>2014-07-26 18:35:08 -0700
commit855564b83db7b106d2995d0e784f1f4b62e52371 (patch)
treede3caa3f36b24acb9279a8cb85d4879baeed1798 /runtime/parsed_options.cc
parent3bcac48f23094fa0f46315a080ec47fc368fd4c2 (diff)
downloadart-855564b83db7b106d2995d0e784f1f4b62e52371.tar.gz
art-855564b83db7b106d2995d0e784f1f4b62e52371.tar.bz2
art-855564b83db7b106d2995d0e784f1f4b62e52371.zip
ART: Native bridge command-line parameter
Add a command-line parameter for the native bridge library, slight refactor/cleanup. Add run-test 115 to test the native bridge interface. Currently the tests are black-listed for the target, as the setup for the test is too complicated in the current infrastructure. Change-Id: I6ccf19485e8c30b96e9f2fd5425278cb1ebd403f
Diffstat (limited to 'runtime/parsed_options.cc')
-rw-r--r--runtime/parsed_options.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc
index 8d0aff802b..49f658507d 100644
--- a/runtime/parsed_options.cc
+++ b/runtime/parsed_options.cc
@@ -596,6 +596,10 @@ bool ParsedOptions::Parse(const RuntimeOptions& options, bool ignore_unrecognize
Usage("Unknown -Xverify option %s\n", verify_mode.c_str());
return false;
}
+ } else if (StartsWith(option, "-XX:NativeBridge=")) {
+ if (!ParseStringAfterChar(option, '=', &native_bridge_library_string_)) {
+ return false;
+ }
} else if (StartsWith(option, "-ea") ||
StartsWith(option, "-da") ||
StartsWith(option, "-enableassertions") ||