mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-05 20:36:28 +02:00
Chenged -falign-functions to use architecture-specific value
This commit is contained in:
parent
e8c1e691ad
commit
70833f6591
1 changed files with 7 additions and 5 deletions
|
@ -132,12 +132,14 @@ if( NOT WIN32 )
|
|||
MESSAGE(STATUS "OVERTE_CPU_ARCHITECTURE: ${OVERTE_CPU_ARCHITECTURE}")
|
||||
endif()
|
||||
|
||||
# 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")
|
||||
# Function alignment is necessary for V8.
|
||||
# SetAlignedPointerInInternalField requires at least 2 byte alignment and -falign-functions will set alignment
|
||||
# to machine specific value which should be greater than 2.
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions")
|
||||
|
||||
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions=16")
|
||||
set(ENV{CFLAGS} "$ENV{CFLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions=16")
|
||||
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions")
|
||||
set(ENV{CFLAGS} "$ENV{CFLAGS} ${OVERTE_OPTIMIZE_FLAGS} -falign-functions")
|
||||
message($ENV{CXXFLAGS})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue