Browse Source

Enable LuaJIT on macOS.

Mansour Moufid 3 years ago
parent
commit
a6b6103b87
1 changed files with 6 additions and 2 deletions
  1. 6 2
      CMakeLists.txt

+ 6 - 2
CMakeLists.txt

@@ -48,12 +48,16 @@ else()
 	set(LOVE_TARGET_PLATFORM x86)
 	set(LOVE_TARGET_PLATFORM x86)
 endif()
 endif()
 
 
-option(LOVE_JIT "Use LuaJIT" TRUE)
+if(APPLE)
+	option(LOVE_JIT "Use LuaJIT" FALSE)
+else()
+	option(LOVE_JIT "Use LuaJIT" TRUE)
+endif()
 option(LOVE_MPG123 "Use mpg123" TRUE)
 option(LOVE_MPG123 "Use mpg123" TRUE)
 
 
 if(LOVE_JIT)
 if(LOVE_JIT)
 	if(APPLE)
 	if(APPLE)
-		message(FATAL_ERROR "JIT not supported yet on Mac. Please use -DLOVE_JIT=0.")
+		message(WARNING "JIT not supported yet on Mac.")
 	endif()
 	endif()
 	message(STATUS "LuaJIT: Enabled")
 	message(STATUS "LuaJIT: Enabled")
 else()
 else()