diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-10-17 17:46:41 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-10-17 17:53:36 -0700 |
commit | a40118d7b6f70f44eaf4a47a32808088fd039f71 (patch) | |
tree | 7d72e2f4756a4182d4bf68643ced4800e3bcaeea /tools/bit/command.cpp | |
parent | 154535317eaa84a50d70cb3af8697ab4e2c89a25 (diff) |
Use soong_ui directly, instead of make
This will use ckati instead of make for dumping variables, for
consistent makefile parsing. It may also sandbox executions, etc.
Also skip the legacy make wrapper to build, and use soong_ui instead.
The command line arguments are equivalent, but -j is no longer
necessary, we'll default to a sane value.
Test: bit -b framework
Change-Id: Idc2c9d1abe84b6b783b8702925de5493d47a4509
Diffstat (limited to 'tools/bit/command.cpp')
-rw-r--r-- | tools/bit/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bit/command.cpp b/tools/bit/command.cpp index 1ff7c221b26e..f95ea117a96e 100644 --- a/tools/bit/command.cpp +++ b/tools/bit/command.cpp @@ -189,7 +189,7 @@ run_command(const Command& command) int exec_with_path_search(const char* prog, char const* const* argv, char const* const* envp) { - if (prog[0] == '/') { + if (strchr(prog, '/') != NULL) { return execve(prog, (char*const*)argv, (char*const*)envp); } else { char* pathEnv = strdup(getenv("PATH")); |