fix gpertools initializer
Some checks failed
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m6s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 1m17s
linux-arm-gcc / linux-gcc-armhf (push) Failing after 1m26s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m30s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 2m35s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 3m11s
Some checks failed
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m6s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 1m17s
linux-arm-gcc / linux-gcc-armhf (push) Failing after 1m26s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m30s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 2m35s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 3m11s
This commit is contained in:
parent
2c07bea7cb
commit
36a3c71449
@ -63,7 +63,10 @@ private:
|
||||
namespace { \
|
||||
static void google_init_module_##name() { body; } \
|
||||
GoogleInitializer google_initializer_module_##name(#name, google_init_module_##name, NULL); \
|
||||
__attribute__((constructor)) static void EnsureConstructorRunsBeforeMain() { google_init_module_##name().name(); } \
|
||||
__attribute__((constructor)) static void EnsureConstructorRunsBeforeMain() \
|
||||
{ \
|
||||
google_initializer_module_##name().name(); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define REGISTER_MODULE_DESTRUCTOR(name, body) \
|
||||
|
@ -106,12 +106,13 @@ target_sources(
|
||||
|
||||
target_link_libraries(
|
||||
sled
|
||||
PUBLIC rpc_core fmt marl Async++ minilua protobuf::libprotobuf
|
||||
PUBLIC rpc_core fmt marl Async++ minilua
|
||||
# protobuf::libprotoc
|
||||
PRIVATE dl)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
target_link_libraries(sled PRIVATE tcmalloc_and_profiler_static)
|
||||
endif()
|
||||
|
||||
if(SLED_WITH_PROTOBUF)
|
||||
target_link_libraries(sled PUBLIC protobuf::libprotobuf)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user