SHARE
TWEET

Untitled

a guest Dec 16th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/src/external/luajit/CMakeLists-LUAJIT.txt
  2. +++ b/src/external/luajit/CMakeLists-LUAJIT.txt
  3. @@ -22,6 +22,9 @@ endif()
  4.  # CPU detection
  5.  if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL x86_64)
  6.    add_definitions(-DLUAJIT_TARGET=LUAJIT_ARCH_X64)
  7. +# hack because on OSX CMAKE_HOST_SYSTEM_PROCESSOR is always i386
  8. +elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  9. +  add_definitions(-DLUAJIT_TARGET=LUAJIT_ARCH_X64)
  10.  elseif (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL i386)
  11.    add_definitions(-DLUAJIT_TARGET=LUAJIT_ARCH_x86)
  12.  elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL x86)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top