Skip to content
Snippets Groups Projects
Commit 97c070a7 authored by Nick Zavaritsky's avatar Nick Zavaritsky
Browse files

Consistency in setting LuaJIT compile options

parent 594dc4d4
No related branches found
No related tags found
No related merge requests found
......@@ -139,18 +139,18 @@ macro(luajit_build)
#
# This stuff is extremely fragile, proceed with caution.
set (luajit_cflags ${CMAKE_C_FLAGS})
set (luajut_ldflags ${CMAKE_EXE_LINKER_FLAGS})
separate_arguments(luajit_cflags)
separate_arguments(luajit_ldflags)
if(CC_HAS_WNO_PARENTHESES_EQUALITY)
set(luajit_cflags "${luajit_cflags} -Wno-parentheses-equality")
set(luajit_cflags ${luajit_cflags} -Wno-parentheses-equality)
endif()
if(CC_HAS_WNO_TAUTOLOGICAL_COMPARE)
set(luajit_cflags "${luajit_cflags} -Wno-tautological-compare")
set(luajit_cflags ${luajit_cflags} -Wno-tautological-compare)
endif()
if(CC_HAS_WNO_MISLEADING_INDENTATION)
set(luajit_cflags "${luajit_cflags} -Wno-misleading-indentation")
set(luajit_cflags ${luajit_cflags} -Wno-misleading-indentation)
endif()
separate_arguments(luajit_cflags)
set (luajut_ldflags ${CMAKE_EXE_LINKER_FLAGS})
separate_arguments(luajit_ldflags)
# We are consciously ommiting debug info in RelWithDebInfo mode
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set (luajit_ccopt -O0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment