mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
Merge pull request #1299 from jszakmeister/add-missing-luajit-flags
Add missing linker flags required for LuaJIT on 64-bit Mac OS X.
This commit is contained in:
@@ -69,6 +69,16 @@ if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|||||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
|
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
# Required for luajit.
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS
|
||||||
|
"${CMAKE_EXE_LINKER_FLAGS} -pagezero_size 10000 -image_base 100000000")
|
||||||
|
set(CMAKE_SHARED_LINKER_FLAGS
|
||||||
|
"${CMAKE_SHARED_LINKER_FLAGS} -image_base 100000000")
|
||||||
|
set(CMAKE_MODULE_LINKER_FLAGS
|
||||||
|
"${CMAKE_MODULE_LINKER_FLAGS} -image_base 100000000")
|
||||||
|
endif()
|
||||||
|
|
||||||
option(USE_GCOV "Enable gcov support" OFF)
|
option(USE_GCOV "Enable gcov support" OFF)
|
||||||
|
|
||||||
if(USE_GCOV)
|
if(USE_GCOV)
|
||||||
|
Reference in New Issue
Block a user