build: re-enable -flto for gcc and clang.
This commit is contained in:
parent
a0202efc40
commit
8219843ee1
6 changed files with 39 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue