diff --git a/conf.pri.example b/conf.pri.example index bbf10a433..d8ab3ad9d 100644 --- a/conf.pri.example +++ b/conf.pri.example @@ -29,7 +29,7 @@ else:unix { LIBS += -lmysqlclient } - # others + # Use faster linkers clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker } diff --git a/include/orm/databaseconnection.hpp b/include/orm/databaseconnection.hpp index 020401d67..348c7a8d9 100644 --- a/include/orm/databaseconnection.hpp +++ b/include/orm/databaseconnection.hpp @@ -474,6 +474,7 @@ namespace Orm { reconnectIfMissingConnection(); + // CUR I'm able to get rid of TINYORM_DEBUG_SQL public macro, when I move line below, especially m_debugSql check to the cpp file, after that TINYORM_DEBUG_SQL will be private silverqx // Elapsed timer needed const auto countElapsed = !m_pretending && (m_debugSql || m_countingElapsed); diff --git a/include/orm/tiny/model.hpp b/include/orm/tiny/model.hpp index 9f4c81cad..befc84807 100644 --- a/include/orm/tiny/model.hpp +++ b/include/orm/tiny/model.hpp @@ -98,6 +98,7 @@ namespace Relations { // CUR do not forget to add new compiler/linker flags also to qmake build silverqx // CUR use #pragma system_header when I will tune playground, https://docs.microsoft.com/en-us/cpp/preprocessor/system-header-pragma?view=msvc-160 silverqx // CUR cmake, add support for multi-config generators silverqx + // CUR check hide_symbols on unix playgrournd, does it has effect on non-lib? silverqx /*! Base model class. */ template class Model : diff --git a/include/orm/utils/export.hpp b/include/orm/utils/export.hpp index c4fe9e86b..c6357fd74 100644 --- a/include/orm/utils/export.hpp +++ b/include/orm/utils/export.hpp @@ -1,7 +1,7 @@ #pragma once #ifndef TINYORM_EXPORT_H #define TINYORM_EXPORT_H - +// BUG TINY_DECL_IMPORT should has visibility("hidden") ? silverqx #if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) \ || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) \ || defined(__NT__) diff --git a/tests/conf.pri.example b/tests/conf.pri.example index 302af47cf..c4b99eb08 100644 --- a/tests/conf.pri.example +++ b/tests/conf.pri.example @@ -13,7 +13,7 @@ else:unix { # range-v3 QMAKE_CXXFLAGS += -isystem $$quote(/home/xyz/vcpkg/installed/x64-linux/include) - # others + # Use faster linkers clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker }