aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/option_processor.cc
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2016-11-28 08:55:47 +0000
committerGravatar Irina Iancu <elenairina@google.com>2016-11-28 12:39:59 +0000
commit49970e0136d0626460253b7c496cdc74fe7ee237 (patch)
tree7188c1e5a036861a6f0caa49ae2f40198ed7be33 /src/main/cpp/option_processor.cc
parent0b6549f5ff6c3591e19a42e2b8cdf5dc52ebc81a (diff)
Bazel client: platform-specific {Read,Write}File
Move blaze::ReadFile and blaze::WriteFile to file.h and file_platform.h (thus into the blaze_util namespace), and update references. This allows us to implement these methods in a platform-specific way. Also move UnlinkPath. See https://github.com/bazelbuild/bazel/issues/2107 -- MOS_MIGRATED_REVID=140328273
Diffstat (limited to 'src/main/cpp/option_processor.cc')
-rw-r--r--src/main/cpp/option_processor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/cpp/option_processor.cc b/src/main/cpp/option_processor.cc
index e3224a2ac6..680e2e331e 100644
--- a/src/main/cpp/option_processor.cc
+++ b/src/main/cpp/option_processor.cc
@@ -74,7 +74,7 @@ blaze_exit_code::ExitCode OptionProcessor::RcFile::Parse(
string filename(filename_ref); // file
BAZEL_LOG(INFO) << "Parsing the RcFile " << filename;
string contents;
- if (!ReadFile(filename, &contents)) {
+ if (!blaze_util::ReadFile(filename, &contents)) {
// We checked for file readability before, so this is unexpected.
blaze_util::StringPrintf(error,
"Unexpected error reading .blazerc file '%s'", filename.c_str());