Tongliang Liao
81e0d616ed
Expose IsGoogleLoggingInitialized() in public API.
...
Usually library does not have control of the process lifespan.
Without this function, it is impossible to init/shutdown reliably.
It has been one of the major pain points for years when using glog in libraries.
AFAIK 3 workarounds have been used previously:
1. Init without checking. This causes compatiblity issues with other libs using glog.
2. Also provide a init function in library's API. This makes API complicated and stateful, especially for libs that does not mean to stay for the entire life of process.
3. Steal the utility function in internal namespace. Does not work with msvc (due to missing dllexport) or `gcc -fvisibility=hidden`.
None of them are perfect, except for the last hack that usually works well on Linux.
0.5.0 changes default visibility to hidden and it does not work anymore.
Resolve https://github.com/google/glog/issues/125
2021-05-14 08:57:32 +08:00
Rodrigo Queiro
d5c04eec9e
bazel: Use glog 0.5.0 in README
...
Also, add a sha256 for gflags to avoid a build warning.
2021-05-10 08:32:27 +02:00
Sergiu Deitsch
8f9ccfe770
Merge pull request #646 from sergiud/release-0.5
...
release 0.5
2021-05-08 01:05:04 +02:00
Sergiu Deitsch
36fee386f5
release 0.5
2021-05-06 21:53:03 +02:00
Sergiu Deitsch
8d40d7564d
Merge pull request #642 from husskade/patch-1
...
readme: update CMake source directory option
2021-04-14 19:59:37 +02:00
Kamil
a23e96f04f
readme: update CMake source directory option
...
The `-H` command-line option has been replaced in 3.13 by `-S`.
2021-04-14 19:10:17 +02:00
Sergiu Deitsch
0efaa59a75
Merge pull request #641 from sergiud/nullptr
...
CHECK support for nullptr (fixes #341 )
2021-04-12 10:08:28 +02:00
Sergiu Deitsch
230da316c5
Merge pull request #637 from xiaobfly/master
...
fix LogCleaner::IsLogFromCurrentProject for filename_extension
2021-04-11 15:20:57 +02:00
Sergiu Deitsch
bda40ec006
Merge pull request #640 from sergiud/gflags-windows-linker-warnings
...
fix gflags windows linker warnings
2021-04-11 15:09:03 +02:00
Sergiu Deitsch
762a2a7ee1
eliminated gflags related linker warnings ( #569 )
2021-04-11 14:24:41 +02:00
Sergiu Deitsch
7d4eeb14f4
Merge pull request #554 from santigl/santigl/custom-prefixer
...
Add support for customizing the prefix format
2021-04-09 21:02:32 +02:00
Santiago Gil
0cbc235297
Add support for setting a custom prefix format
2021-04-09 20:11:44 +02:00
Bret McKee
c7656c3ec1
CHECK support for nullptr ( fixes #341 )
...
This allows CHECK_NE(foo, nullptr) to compile and produces "nullptr" for the
string representation of nullptr.
2021-04-09 20:10:08 +02:00
Sergiu Deitsch
663bb26960
Merge pull request #620 from sergiud/cmake-allow-to-disable-symbolize
...
cmake: allow to disable symbolize
2021-04-09 15:06:36 +02:00
Sergiu Deitsch
7ec73b5099
Merge pull request #639 from sergiud/fix-windows-builds
...
fixed windows builds
2021-04-09 10:24:38 +02:00
Sergiu Deitsch
efc341d768
fixed windows builds
2021-04-08 18:16:42 +02:00
Sergiu Deitsch
a79416bab7
Merge pull request #638 from NeroBurner/github_actions
...
Add Windows builds using GitHub Actions
2021-04-08 01:16:17 +02:00
Reinhold Gschweicher
63ec71b58d
Add windows builds with GitHub Actions
...
Add VS 2017, VS 2019 and MinGW-w64 builds running the test cases. All
compiler have build jobs for C++11 and C++17.
Currently only the build-type 'Debug' is used, but can easily be
extended to build both 'Debug' and 'Release'.
2021-04-07 23:19:20 +02:00
Sergiu Deitsch
39e83581de
cmake: allow to disable symbolize
2021-04-07 22:59:46 +02:00
xiaobfly
635a078180
fix LogCleaner::IsLogFromCurrentProject for filename_extension
2021-04-07 17:42:52 +08:00
Sergiu Deitsch
e51790bf33
Merge pull request #625 from sergiud/remove-windows-headers
...
removed windows-specific headers
2021-04-06 20:22:14 +02:00
Sergiu Deitsch
36e6ed910a
Merge pull request #635 from google/win-headers
...
Use generated config.h for Windows.
2021-04-06 20:15:32 +02:00
Sergiu Deitsch
7d60d6e04b
removed windows specific headers
2021-04-06 19:59:47 +02:00
Rodrigo Queiro
1041a221b8
Use generated config.h for Windows.
...
This unblocks a simplification of the Windows CMake build.
2021-04-06 14:02:21 +02:00
Sergiu Deitsch
82320a8a88
Merge pull request #631 from xiaobfly/master
...
fixed file extension
2021-04-04 03:17:33 +02:00
Sergiu Deitsch
bf183f44f2
Merge pull request #632 from sergiud/cmake-default-shared-libs
...
cmake: build shared libs by default
2021-04-02 01:45:30 +02:00
Sergiu Deitsch
9ee010d853
cmake: build shared libs by default
2021-04-02 01:23:43 +02:00
xiaobfly
4fca1b9673
fixed filename extension
2021-04-01 17:21:19 +08:00
Rodrigo Queiro
30bb9086d2
bazel: use expand_template instead of genrules
...
This lets us drop the dependency on the preprocessed headers in
src/windows/glog/.
For some reason, this lets Bazel realize we've failed to declare a
dependency on dirent.h, so I added that too.
2021-03-31 16:08:50 +02:00
Sergiu Deitsch
d66e593188
Merge pull request #618 from sergiud/ac_cv___attribute___printf_4_5
...
build: set ac_cv___attribute___printf_4_5
2021-03-31 10:32:49 +02:00
Sergiu Deitsch
d5fdcfefcd
Merge pull request #623 from sergiud/language-version
...
document C++ version
2021-03-31 10:32:39 +02:00
Sergiu Deitsch
7f8a48b3bf
Merge pull request #595 from r-barnes/richard/ctr_type_fix
...
Change counter type to uint64
2021-03-31 09:43:14 +02:00
Sergiu Deitsch
5abed00e3c
Merge pull request #626 from sergiud/use-c++-headers
...
use C++ headers
2021-03-31 09:42:48 +02:00
Richard Barnes
bf3e5a80ae
Change counter type to uint64
2021-03-31 02:28:29 +02:00
Sergiu Deitsch
01f3e543e3
use C++ headers
2021-03-31 02:24:22 +02:00
Sergiu Deitsch
2f7d608a92
Merge pull request #627 from sergiud/cmake-no-c-compiler
...
cmake: do not require a C compiler
2021-03-31 02:23:19 +02:00
Sergiu Deitsch
3f4df6aee9
cmake: do not require a C compiler
2021-03-31 01:44:15 +02:00
Sergiu Deitsch
7a6e743eb6
Merge pull request #624 from sergiud/qualify-std-string
...
fully qualify std::string
2021-03-31 00:45:25 +02:00
Sergiu Deitsch
e27f141194
Merge pull request #622 from sergiud/max_log_size-overflow
...
handle --max_log_size overflow
2021-03-30 23:59:53 +02:00
Sergiu Deitsch
0b3c27d042
fully qualify std::string
2021-03-30 23:47:48 +02:00
Sergiu Deitsch
5c57edfbc8
readme: document C++ version
2021-03-30 23:37:15 +02:00
Sergiu Deitsch
20984f9730
Merge pull request #621 from sergiud/cmake-use-gtest
...
cmake: optionally use gtest
2021-03-30 23:23:01 +02:00
Sergiu Deitsch
3533c22d21
handle --max_log_size overflow
2021-03-30 23:16:40 +02:00
Sergiu Deitsch
be25d94c21
cmake: optionally use gtest
2021-03-30 22:41:15 +02:00
Sergiu Deitsch
45fdc922de
Merge pull request #619 from sergiud/cmake-proper-symbol-export
...
cmake: export symbols selectively
2021-03-30 22:13:09 +02:00
Sergiu Deitsch
c30896d3d5
cmake: export symbols selectively
2021-03-30 21:41:52 +02:00
Sergiu Deitsch
b442ef8070
build: set ac_cv___attribute___printf_4_5
2021-03-30 21:12:09 +02:00
Rodrigo Queiro
d4e8ebab7e
Add layering_check to Bazel CI.
...
This will avoid regressions on #596 .
2021-03-02 10:32:06 +01:00
Rodrigo Queiro
0863ad797c
bazel: declare headers in top-level rule
...
Fixes #596 .
2021-03-02 10:32:06 +01:00
Rodrigo Queiro
ce50c57b9e
Rename BUILD to BUILD.bazel.
...
This avoids conflicts with build/ on case-insensitive filesystems.
Fixes #606 .
2021-03-01 13:23:27 +01:00