forked from blender/blender
index-of-nearest-104619 #2
@ -174,7 +174,7 @@ if(SYSTEMSTUBS_LIBRARY)
|
|||||||
list(APPEND PLATFORM_LINKLIBS SystemStubs)
|
list(APPEND PLATFORM_LINKLIBS SystemStubs)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
string(APPEND PLATFORM_CFLAGS " -pipe -funsigned-char -fno-strict-aliasing")
|
string(APPEND PLATFORM_CFLAGS " -pipe -funsigned-char -fno-strict-aliasing -ffp-contract=off")
|
||||||
set(PLATFORM_LINKFLAGS
|
set(PLATFORM_LINKFLAGS
|
||||||
"-fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework Metal -framework QuartzCore"
|
"-fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework Metal -framework QuartzCore"
|
||||||
)
|
)
|
||||||
|
@ -803,8 +803,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
|
|||||||
# Automatically turned on when building with "-march=native". This is
|
# Automatically turned on when building with "-march=native". This is
|
||||||
# explicitly turned off here as it will make floating point math give a bit
|
# explicitly turned off here as it will make floating point math give a bit
|
||||||
# different results. This will lead to automated test failures. So disable
|
# different results. This will lead to automated test failures. So disable
|
||||||
# this until we support it. Seems to default to off in clang and the intel
|
# this until we support it.
|
||||||
# compiler.
|
|
||||||
set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off")
|
set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off")
|
||||||
|
|
||||||
# `maybe-uninitialized` is unreliable in release builds, but fine in debug builds.
|
# `maybe-uninitialized` is unreliable in release builds, but fine in debug builds.
|
||||||
@ -892,7 +891,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
|
|||||||
|
|
||||||
# CLang is the same as GCC for now.
|
# CLang is the same as GCC for now.
|
||||||
elseif(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
elseif(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||||
set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing")
|
set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing -ffp-contract=off")
|
||||||
|
|
||||||
if(WITH_LINKER_MOLD AND _IS_LINKER_DEFAULT)
|
if(WITH_LINKER_MOLD AND _IS_LINKER_DEFAULT)
|
||||||
find_program(MOLD_BIN "mold")
|
find_program(MOLD_BIN "mold")
|
||||||
|
Loading…
Reference in New Issue
Block a user