diff options
author | 2015-04-13 14:33:30 +0000 | |
---|---|---|
committer | 2015-04-14 14:29:43 +0000 | |
commit | 241f46c623e4f35efe750179c230bb1be0983c16 (patch) | |
tree | d7d68982b96f3a72e12f95e06c4ee0eb55f25c51 /src/main/cpp/util/file.cc | |
parent | 51707da6fc9127eb9ef8db09ef6ffdee7173b119 (diff) |
Cleanup: Build file.cc as part of util library.
Looks like in the transition it was forgotten to be moved to the new
location.
As an effect of this change it was discovered that file.cc had an
dependency back on blaze_util.cc (from client binary for die/pdie functions).
In order to fix that dependency we have had to move die/pdie functions into
util library (added errors.(cc|h)) for this.
Tested on Linux with the following command lines:
$ ./compile.sh
$ ./output/bazel build //src/main/cpp:all
$ ./output/bazel build //src:bazel
$ ./bootstrap_test.sh all
--
Change-Id: I70fb1b6189dc5af31f816332d76efe380ef26302
MOS_MIGRATED_REVID=90987514
Diffstat (limited to 'src/main/cpp/util/file.cc')
-rw-r--r-- | src/main/cpp/util/file.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/cpp/util/file.cc b/src/main/cpp/util/file.cc index 581b71a6c6..86181196e5 100644 --- a/src/main/cpp/util/file.cc +++ b/src/main/cpp/util/file.cc @@ -21,7 +21,7 @@ #include <vector> #include "blaze_exit_code.h" -#include "blaze_util.h" +#include "util/errors.h" #include "util/strings.h" using std::pair; @@ -76,8 +76,8 @@ string JoinPath(const string &path1, const string &path2) { string Which(const string &executable) { string path(getenv("PATH")); if (path.empty()) { - blaze::die(blaze_exit_code::LOCAL_ENVIRONMENTAL_ERROR, - "Could not get PATH to find %s", executable.c_str()); + die(blaze_exit_code::LOCAL_ENVIRONMENTAL_ERROR, + "Could not get PATH to find %s", executable.c_str()); } std::vector<std::string> pieces = blaze_util::Split(path, ':'); |