| Index: runtime/bin/platform.cc
|
| diff --git a/runtime/bin/platform.cc b/runtime/bin/platform.cc
|
| index 2f55f9d695ce353def762f43748bb1017c5cdbfa..0ed2bd364fd10eec6d347472f6233379e94a3cc1 100644
|
| --- a/runtime/bin/platform.cc
|
| +++ b/runtime/bin/platform.cc
|
| @@ -13,7 +13,7 @@ namespace dart {
|
| namespace bin {
|
|
|
| const char* Platform::executable_name_ = NULL;
|
| -bool Platform::executable_name_resolved_ = false;
|
| +const char* Platform::resolved_executable_name_ = NULL;
|
| const char* Platform::package_root_ = NULL;
|
| int Platform::script_index_ = 1;
|
| char** Platform::argv_ = NULL;
|
| @@ -51,6 +51,16 @@ void FUNCTION_NAME(Platform_ExecutableName)(Dart_NativeArguments args) {
|
| }
|
|
|
|
|
| +void FUNCTION_NAME(Platform_ResolvedExecutableName)(Dart_NativeArguments args) {
|
| + if (Platform::GetResolvedExecutableName() != NULL) {
|
| + Dart_SetReturnValue(
|
| + args, Dart_NewStringFromCString(Platform::GetResolvedExecutableName()));
|
| + } else {
|
| + Dart_SetReturnValue(args, Dart_Null());
|
| + }
|
| +}
|
| +
|
| +
|
| void FUNCTION_NAME(Platform_ExecutableArguments)(Dart_NativeArguments args) {
|
| int end = Platform::GetScriptIndex();
|
| char** argv = Platform::GetArgv();
|
|
|