Commit bc9a4910 authored by Rodrigo Queiro's avatar Rodrigo Queiro Committed by Rodrigo Queiro

Allow using glog/stl_logging.h with Bazel

Fixes #289.
parent 3106945d
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <glog/stl_logging.h>
int main(int argc, char* argv[]) {
// Initialize Google's logging library.
......@@ -10,5 +11,9 @@ int main(int argc, char* argv[]) {
LOG(INFO) << "Hello, world!";
// glog/stl_logging.h allows logging STL containers.
std::vector<int> x {1, 2, 3};
LOG(INFO) << "ABC, it's easy as " << x;
return 0;
}
......@@ -89,7 +89,8 @@ def glog_library(namespace='google', with_gflags=1):
cmd = r'''\
#!/bin/sh
cat > $@ <<"EOF"
sed -e 's/@ac_cv_have_unistd_h@/1/g' \
sed -e 's/@ac_cv_cxx_using_operator@/1/g' \
-e 's/@ac_cv_have_unistd_h@/1/g' \
-e 's/@ac_cv_have_stdint_h@/1/g' \
-e 's/@ac_cv_have_systypes_h@/1/g' \
-e 's/@ac_cv_have_libgflags_h@/1/g' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment