mirror of
https://github.com/overte-org/overte.git
synced 2025-04-05 23:32:58 +02:00
Align functions to avoid V8 asserts in debug builds
This commit is contained in:
parent
db1680c1ca
commit
e8c1e691ad
1 changed files with 5 additions and 4 deletions
|
@ -132,11 +132,12 @@ if( NOT WIN32 )
|
|||
MESSAGE(STATUS "OVERTE_CPU_ARCHITECTURE: ${OVERTE_CPU_ARCHITECTURE}")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OVERTE_OPTIMIZE_FLAGS}")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OVERTE_OPTIMIZE_FLAGS}")
|
||||
# Function alignment is necessary for V8
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions=16")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions=16")
|
||||
|
||||
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} ${OVERTE_OPTIMIZE_FLAGS}")
|
||||
set(ENV{CFLAGS} "$ENV{CFLAGS} ${OVERTE_OPTIMIZE_FLAGS}")
|
||||
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions=16")
|
||||
set(ENV{CFLAGS} "$ENV{CFLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions=16")
|
||||
message($ENV{CXXFLAGS})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue