Commit Graph

633 Commits

Author SHA1 Message Date
Sergiu Deitsch
56523194b3
Merge pull request #716 from google/export-os-defines
export `OS_*` defines (fixes #715)
2021-10-01 12:50:16 +02:00
Sergiu Deitsch
f7407d4d27 export OS_* defines (fixes #715) 2021-10-01 11:26:07 +02:00
Tongliang Liao
2412db3158 raw_logging.h depends on type definition in logging.h.
Resolve https://github.com/google/glog/issues/712
2021-09-24 12:51:15 +02:00
kinsei0916
3b6b05d70b Use __EMSCRIPTEN__ instead of __USE_POSIX2 2021-09-20 22:14:58 +02:00
kinsei0916
de81bb0aac Fix link error for Emscripten 2021-09-20 22:14:58 +02:00
Sergiu Deitsch
9733727be4
Merge pull request #706 from dfreese/tsan_annotation
Change size type in AnnotateBenignRaceSized to size_t from long
2021-09-03 19:27:28 +02:00
David Freese
ffb40018a5 Change size type in AnnotateBenignRaceSized to size_t from long
This makes this definition consistent with Abseil's declarations.  See:
https://github.com/abseil/abseil-cpp/blob/master/absl/base/dynamic_annotations.h#L213-L215

Having this unsigned seems to match what libsanitizers is expecting:
16e2427f50/libsanitizer/tsan/tsan_interface_ann.cpp (L367-L371)

This solves a "conflicting declaration of C function" when using glog
with abseil.
2021-09-03 09:51:46 -07:00
Sergiu Deitsch
6f9e32a79e
Merge pull request #700 from Starsss/master
Fix: not implement virtual class when WITH_CUSTOM_PREFIX on
2021-08-13 13:32:07 +02:00
六岁小少年
df95749e83 Fix: not implement virtual class when WITH_CUSTOM_PREFIX on 2021-08-12 16:40:52 +08:00
Sergiu Deitsch
35983c895c
Merge pull request #696 from Fettpet/signed_compare
Add a static cast to compare unsigned with unsigned
2021-08-10 13:36:31 +02:00
Sebastian Hahn
9fce37c464 Add a static cast to compare unsigned with unsigned 2021-08-09 10:15:07 +02:00
Sergiu Deitsch
a063a04ecf
Merge pull request #694 from google/more-warnings
fixed additional warnings
2021-08-01 18:15:31 +02:00
Sergiu Deitsch
92cb3c449b fixed additional warnings 2021-08-01 17:12:21 +02:00
Sergiu Deitsch
f8c8e99fdf
Merge pull request #688 from google/eliminate-warnings
eliminate warnings
2021-07-24 00:38:08 +02:00
Sergiu Deitsch
98e0e8c65d cmake: bump .so version
Account for ABI incompatibility.
2021-07-23 14:39:25 +02:00
Sergiu Deitsch
0b83bb203d eliminate warnings 2021-07-22 22:52:22 +02:00
Sergiu Deitsch
370cb741bb
Merge pull request #674 from StephLin/readme-fix-header-id
readme: fix wrong header id
2021-07-15 21:40:20 +02:00
Sergiu Deitsch
3ce6090d04 override header language 2021-07-14 22:55:23 +02:00
Sergiu Deitsch
36bcd28c61
Merge pull request #687 from google/exception-spec
fixed exception specification mismatch
2021-07-14 20:47:34 +02:00
Sergiu Deitsch
dfe573088c bump version 2021-07-14 20:02:37 +02:00
Sergiu Deitsch
717f569835 fixed exception specification mismatch 2021-07-14 19:37:05 +02:00
Sergiu Deitsch
eca3ddef81
Merge pull request #685 from z-aki/master
Fix syscall deprecation warning on macOS >= 10.12
2021-07-14 17:49:43 +02:00
z-aki
4a4331f2f2 Fix syscall deprecation warning on macOS >= 10.12
Fix #185
2021-07-14 19:51:19 +05:30
Sergiu Deitsch
a01d739ea3
Merge pull request #684 from sergiud/cmake-namespaced-gflags
cmake: prefer linking against gflags::gflags (fixes #683)
2021-07-14 10:39:54 +02:00
Sergiu Deitsch
8d3ce1c29a
Merge pull request #686 from google/ci-more-targets
ci: support more targets
2021-07-14 10:37:45 +02:00
Sergiu Deitsch
c39fcf6e8a ci: added more targets 2021-07-14 02:21:58 +02:00
Sergiu Deitsch
47ad26d5c6 readme: fixed inconsistent formatting 2021-07-13 15:30:19 +02:00
Sergiu Deitsch
5bf7fdea16 cmake: prefer linking against gflags::gflags (fixes #683) 2021-07-13 13:24:27 +02:00
Sergiu Deitsch
42ce901f28
Merge pull request #669 from darbitman/log-every-time-period
log messages periodically (time-based)
2021-07-05 20:33:12 +02:00
Dmitriy A
a1374c4200 Implement LOG_EVERY_T.
Use <chrono> and <atomic> for C++11 or greater.
For non-Windows pre-C++11 systems, use <time.h> and built-in atomic operations.
For Windows pre-C++11, use the Windows implementations for time and atomic operations.
2021-07-05 07:25:12 -07:00
luliyucoordinate
6e46c125e3 bazel: add GLOG_CUSTOM_PREFIX_SUPPORT 2021-07-01 08:04:18 +02:00
Philipp Wollermann
a415556858 Remove ubuntu1604 from presubmit.yml
Ubuntu 16.04 is end-of-life, we're going to remove it from Bazel CI.

If you like you can add testing on `ubuntu2004` platform which we also support.
2021-07-01 08:04:02 +02:00
StephLin
a1fa841f33 readme: fix wrong header id 2021-06-19 17:28:57 +08:00
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