Commit Graph

800 Commits

Author SHA1 Message Date
Sergiu Deitsch
a4a725d547
Merge pull request #671 from sergiud/cmake-define-have-cxx11-atomic
cmake: export `<atomic>` availability (fixes #667)
2021-06-16 09:46:58 +02:00
Sergiu Deitsch
44331dc245
Merge pull request #672 from sergiud/cmake-allow-to-override-fpic
cmake: allow to override `-fPIC`
2021-06-16 00:32:16 +02:00
Sergiu Deitsch
f0bac8852a cmake: allow to override -fPIC 2021-06-15 23:56:49 +02:00
Sergiu Deitsch
764162569a
Merge pull request #670 from sergiud/cmake-msvc-snprintf
cmake: fixed msvc snprintf detection (fixes #668)
2021-06-15 20:09:07 +02:00
Sergiu Deitsch
d25a1b7bc0 cmake: export <atomic> availability (fixes #667) 2021-06-15 18:36:24 +02:00
Sergiu Deitsch
9c1a25b931 cmake: fixed msvc snprintf detection (fixes #668) 2021-06-15 18:26:10 +02:00
Fabian Meumertzheim
c1499f64a8 Export COPYING
By exporting `COPYING`, Bazel projects depending on glog can easily access its license.
2021-06-07 09:28:40 +02:00
Sergiu Deitsch
03f2b3861a
Merge pull request #650 from romange/Prod
Allow updating vmodule levels after vmodule level has been cached
2021-05-23 21:36:03 +02:00
Roman Gershman
86fea1ab25 Allow updating vmodule levels after vmodule was parsed, invalidate already cached site flags
vmodule flag is relevant for GNUC environments only.
2021-05-23 19:38:22 +03:00
Sergiu Deitsch
fef48c17e2
Merge pull request #656 from romange/cygwin
Fix cmake configuration for cygwin environment
2021-05-23 14:23:32 +02:00
Roman Gershman
d2fed749a5 Fix cmake configuration for cygwin environment
1. Use CYGWIN variable to test for WIN32 because WIN32 var has been deprecated in later versions of cmake.
2. Translate TEST_SRC_DIR to windows paths because posix open calls can not handle unix-like paths in cygwin environment.
2021-05-23 14:07:16 +03:00
Sergiu Deitsch
0b3d4cb471
Merge pull request #651 from xkszltl/initapi
Expose `IsGoogleLoggingInitialized()` in public API.
2021-05-14 13:23:01 +02:00
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