diff options
author | 2017-02-01 15:09:58 -0800 | |
---|---|---|
committer | 2017-02-01 15:51:42 -0800 | |
commit | 97c381e3ce34cd327c2ec35fa850bd0eaa9b697f (patch) | |
tree | 4a21b2db89c578cdb2908547547e0546748eec7f /runtime/utils.h | |
parent | 3cb871ab1af47576959fd24a99d370381b8f193e (diff) |
Separate art::Exec from utils
The rest of utils.cc does not depend on art::Runtime. This separates
the part dependent on that class, so that including utils.cc in the
build does not require the entire Runtime. Another preparatory cleanup
to getting tools to build on Windows.
Bug: 22322814
Test: test-art
Change-Id: I194ff363fc2ab87e5311ecea6973a2d0fad2621d
Diffstat (limited to 'runtime/utils.h')
-rw-r--r-- | runtime/utils.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index 5f53608f65..67438b5881 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -175,13 +175,6 @@ bool GetDalvikCacheFilename(const char* file_location, const char* cache_locatio // Returns the system location for an image std::string GetSystemImageFilename(const char* location, InstructionSet isa); -// Wrapper on fork/execv to run a command in a subprocess. -// Both of these spawn child processes using the environment as it was set when the single instance -// of the runtime (Runtime::Current()) was started. If no instance of the runtime was started, it -// will use the current environment settings. -bool Exec(std::vector<std::string>& arg_vector, std::string* error_msg); -int ExecAndReturnCode(std::vector<std::string>& arg_vector, std::string* error_msg); - // Returns true if the file exists. bool FileExists(const std::string& filename); bool FileExistsAndNotEmpty(const std::string& filename); |