Commit Graph

325 Commits

Author SHA1 Message Date
Rodrigo Queiro
55cc27b6ec Bazel: make example more portable 2018-02-01 14:13:46 +01:00
Rodrigo Queiro
bc9a491033 Allow using glog/stl_logging.h with Bazel
Fixes #289.
2018-02-01 14:13:46 +01:00
Rodrigo Queiro
3106945d8d Add workaround for Bazel build on macOS
This works around https://github.com/bazelbuild/bazel/issues/3979,
and so closes #282.
2018-01-16 17:06:15 +01:00
Sergiu Deitsch
028d37889a cmake: remove config.h from public headers (closes #238) 2018-01-04 15:20:26 +01:00
Sergiu Deitsch
fb19c33b00
Merge pull request #283 from Mizux/master
Use target gflags instead of old VARIABLES
2018-01-04 14:38:21 +01:00
Mizux
63871d3e29
Use target gflags instead of old VARIABLES 2018-01-04 13:02:02 +01:00
Rodrigo Queiro
5b1aa94e4b
Merge pull request #276 from drigz/add-example
Add an example using glog from Bazel
2018-01-04 12:00:27 +01:00
Rodrigo Queiro
3efe9e4025 Add an example using glog from Bazel 2018-01-04 11:35:53 +01:00
Rodrigo Queiro
bffb4a6ee2
Merge pull request #277 from drigz/update-gflags
Update gflags to latest master
2018-01-04 11:29:54 +01:00
Sergiu Deitsch
a92e1d95c5 cmake: use gflags package config instead of a find module
This allows to avoid conflicts between third party gflags find modules floating
around. If a package provide a local version of gflags find module, clients
which locate glog will incorrectly use it. Another problem is a CMake error message
"cmake_policy PUSH without matching POP" in nested find_package calls. In summary,
we need to ensure to use the original gflags package config.
2018-01-04 02:38:42 +01:00
Sergiu Deitsch
b2c3afecaa cmake: ensure consumers do not overwrite the required policy 2018-01-02 23:36:51 +01:00
Sergiu Deitsch
ce197f26a5 removed obsolete vsprojects 2018-01-02 22:31:47 +01:00
Sergiu Deitsch
185ba48937 cmake: added a postfix for debug builds (closes #237)
This allows to deploy debug and release builds concurrently.
2018-01-02 14:38:37 +01:00
Sergiu Deitsch
f3bd836de4
Merge pull request #281 from sergiud/msvc-error-define
Fixed undeclared identifier error
2018-01-02 02:21:51 +01:00
Sergiu Deitsch
85d49f7a47 logging_unittest: fixed undeclared identifier error (fixes #267) 2018-01-02 02:18:00 +01:00
Shinichiro Hamaji
0a9f71036f
Merge pull request #278 from shinh/contrib
Update AUTHORS and CONTRIBUTORS for PR#232
2017-12-21 19:05:40 +09:00
Shinichiro Hamaji
4682134d59 Update AUTHORS and CONTRIBUTORS for PR#232 2017-12-20 17:27:27 +09:00
Rodrigo Queiro
2a593235ba Update gflags to latest master
This means that gflags no longer leaks config.h, so I had to fix a bug
in glog.bzl where config.h is generated at the wrong path.

I also switched to the best-practice for depending on git repositories,
ie using http_archive with a mirror.
2017-12-19 15:50:12 +01:00
Rodrigo Queiro
fc87161c96
Merge pull request #232 from qzmfranklin/bazel
Build with Bazel.
2017-12-18 10:20:57 +01:00
Zhongming Qu
389a7782e8 Remove the use of bind() from WORKSPACE. 2017-12-14 13:45:01 -08:00
Zhongming Qu
ea458f60b9 Remove an empty textual_hdrs field. 2017-12-14 01:03:19 -08:00
Zhongming Qu
e6e2e1372a Hide certain header files from the cc_library().
This commit addresses a few issues:

    1.  No longer leak config.h in a way similar to
            https://github.com/gflags/gflags/issues/233
        The solution of prefixing the path by 'glog_internal' is modified from
            https://github.com/gflags/gflags/issues/234

    2.  No longer expose internal headers.

    3.  Replace PACKAGE_NAME with native.package_name()

    4.  Uers can choose namespaces via the newly added 'namespace' keyword.

    5.  Replace glob with explicitly listing of files.

    6.  Make the genrules more compact using pythonic list construction.
2017-12-14 00:58:33 -08:00
Zhongming Qu
004fc8cb8e Can build with Bazel now 2017-12-14 00:58:33 -08:00
Zhongming Qu
921651e97c Build with Bazel. 2017-12-14 00:58:33 -08:00
Fumitoshi Ukai
2063b38708
Merge pull request #261 from pcc/fix3
Compute base addresses from program headers while reading /proc/self/maps.
2017-11-10 16:55:27 +09:00
Peter Collingbourne
c4d37a78cc Compute base addresses from program headers while reading /proc/self/maps.
We previously had logic to compute the base address from program
headers as part of symbolization. The problem is that we need a correct
base address earlier in order to adjust a PC into the image's address
space, as these addresses can appear in unsymbolized output.

There was previously an assumption that only the mapping that
was lowest in the address space did not need to be adjusted. This
assumption is not guaranteed (for example, the kernel may choose to
map an ET_DYN lowest) and in fact turned out to be wrong in binaries
linked with lld because the first mapping is read-only.

The solution is to move the program header reading logic into the
code that reads /proc/self/maps.

There is a change in semantics for clients that install a callback
using the InstallSymbolizeOpenObjectFileCallback function. Any such
clients will need to return a correct base address from the callback
by reading program headers using code similar to that in the function
OpenObjectFileContainingPcAndGetStartAddress.
2017-11-08 14:15:02 -08:00
Sergiu Deitsch
bac8811710
Merge pull request #106 from dimhotepus/master
Cache strlen outside of cycles (PVS-Studio)
2017-11-04 16:22:21 +01:00
Shinichiro Hamaji
d72e3be82c
Merge pull request #260 from ukai/shell_escape
Shell escape arguments to /bin/mail.
2017-10-31 14:30:52 +09:00
Fumitoshi Ukai
9f8a9a9a0d Shell escape arguments to /bin/mail. 2017-10-31 13:04:26 +09:00
Shinichiro Hamaji
56b81ea796 Style fixes for consistency 2017-10-20 16:11:31 +09:00
Shinichiro Hamaji
ebf81ac476 Merge pull request #245 from DariuszOstolski/issue211
Fix username lookup in case of missing USER environment variable
2017-10-20 16:09:28 +09:00
Shinichiro Hamaji
cb7b26bd71 Merge pull request #254 from DariuszOstolski/issue253
#253: Use MS preprocessor idiom to disable warning
2017-10-20 15:48:21 +09:00
Dariusz Ostolski
4912af30f9 #253: Use MS preprocessor idiom to disable warning 2017-10-18 20:56:49 +02:00
Shinichiro Hamaji
d0531421fd Merge pull request #226 from sergiud/zero-allocation-log-failure
Zero allocation fix
2017-10-12 00:25:02 +09:00
Sergiu Deitsch
2fe6508e53 fixed gcc logging failure 2017-10-11 00:45:08 +02:00
Dariusz Ostolski
9d28cac469 Added HAVE_PWD_H to cmake build 2017-09-20 18:41:07 +02:00
Dariusz Ostolski
2d3cf2681d Fix username lookup in case of missing USER environment variable 2017-09-19 22:23:53 +02:00
Shinichiro Hamaji
2a6df66252 Merge pull request #228 from sergiud/dll-export-fix
Fix for missing exports (fixes #227)
2017-08-10 00:06:08 +09:00
Sergiu Deitsch
1bfae38300 added missing exports (fixes #227) 2017-08-09 15:21:32 +02:00
Shinichiro Hamaji
246a5896f1 Merge pull request #225 from jray272/remove-log-every-n-assert
Fix LOG_EVERY_N with clang -Wunused-local-typedef
2017-08-09 16:35:05 +09:00
Jim Ray
dd19fb2466 Remove GOOGLE_GLOG_COMPILE_ASSERT
This compile time assert is no longer used anywhere in glog. Remove
it.
2017-08-09 00:09:16 -07:00
Shinichiro Hamaji
e209906823 Merge pull request #224 from jray272/run-windows-script
Run src/windows/preprocess.sh to pick up latest logging.h.in changes
2017-08-09 15:04:26 +09:00
Jim Ray
8b3023f7e4 Fix LOG_EVERY_N with clang -Wunused-local-typedef
Glog uses a pre-C++11 compile time assert to verify the validity of
the severity parameter for LOG_EVERY_N. Unfortunately, some compilers
will complain about the usage of LOG_EVERY_N with
"-Wunused-local-typedef" due to the way the compile time assert is
constructed. This makes it impossible to use LOG_EVERY_N with this
warning treated as an error.

The fix simply removes the assert entirely. This is safe to do since
you can't put anything invalid into the severity parameters without
generating a compile error elsewhere. This has been safe to do ever
since the GLOG_ prefixes were added as part of 6febec361e.

Fixes #223
2017-08-06 00:17:50 -07:00
Jim Ray
8ed1668cdb Update Windows logging.h based on 2df0ca34aa
Commit changes to src/windows/glog/logging.h that were missed in
2df0ca34aa. Because a change to src/glog/logging.h.in was made,
src/windows/preprocess.sh needed to be run.
2017-08-06 00:13:30 -07:00
Jim Ray
bb485da39a Add Jim Ray to CONTRIBUTORS 2017-08-06 00:13:30 -07:00
Shinichiro Hamaji
b3695ee325 Merge pull request #218 from andschwa/remove-sln
Update Windows docs
2017-08-01 14:41:47 +09:00
Andrew Schwartzmeyer
a2a66f611c Update Windows readme for CMake 2017-07-26 11:35:04 -07:00
Andrew Schwartzmeyer
9f121e5493 Update gitignore for CMake and Visual Studio 2017-07-26 11:34:52 -07:00
Andrew Schwartzmeyer
c7c689fbb9 Delete ancient Visual Studio Solution file. 2017-07-26 11:34:40 -07:00
Shinichiro Hamaji
3faeb50cae Merge pull request #216 from google/revert-120-master
Revert "configure.ac: Allow user to disable gflags"
2017-07-26 17:46:57 +09:00