build: re-enable -flto for gcc and clang.

This commit is contained in:
ds 2020-11-06 16:23:11 +03:00
commit 8219843ee1
6 changed files with 39 additions and 14 deletions

View file

@ -15,11 +15,6 @@
#include <math.h>
// avoid linking to GLIBC_2.27
#if defined (CR_LINUX) && !defined (CR_CXX_INTEL)
__asm__ (".symver powf,powf@GLIBC_2.0");
#endif
CR_NAMESPACE_BEGIN
constexpr float kFloatEpsilon = 0.01f;

View file

@ -99,6 +99,11 @@ CR_NAMESPACE_BEGIN
# pragma GCC diagnostic ignored "-Wignored-attributes"
#endif
// avoid linking to GLIBC_2.27
#if defined (CR_LINUX) && !defined (CR_CXX_INTEL)
__asm__ (".symver powf, powf@GLIBC_2.0");
#endif
CR_NAMESPACE_END
#if defined(CR_WINDOWS)