@@ -74,10 +74,10 @@ function(create_test)
7474 add_dependencies (${test_name} ${LUA_LIBRARIES} )
7575 string (REPLACE "_test" "" test_prefix ${test_name} )
7676 set (LIBFUZZER_OPTS "${LIBFUZZER_OPTS} -artifact_prefix=${test_name} _" )
77- if (USE_LUAJIT AND (${test_name} STREQUAL "lua_dump_test" ))
77+ if (IS_LUAJIT AND (${test_name} STREQUAL "lua_dump_test" ))
7878 set (LIBFUZZER_OPTS "${LIBFUZZER_OPTS} -only_ascii=1" )
7979 endif ()
80- if (USE_LUAJIT AND (${test_name} STREQUAL "lua_load_test" ))
80+ if (IS_LUAJIT AND (${test_name} STREQUAL "lua_load_test" ))
8181 set (LIBFUZZER_OPTS "${LIBFUZZER_OPTS} -only_ascii=1" )
8282 endif ()
8383 set (dict_path ${PROJECT_SOURCE_DIR} /corpus/${test_name} .dict)
@@ -101,9 +101,9 @@ function(create_test)
101101 LABELS capi
102102 )
103103
104- if (USE_LUAJIT )
104+ if (IS_LUAJIT )
105105 target_compile_definitions (${test_name} PUBLIC LUAJIT)
106- endif (USE_LUAJIT )
106+ endif (IS_LUAJIT )
107107endfunction ()
108108
109109# These Lua C functions are unsupported by LuaJIT.
@@ -121,7 +121,7 @@ list(APPEND LUAJIT_BLACKLIST_TESTS "luaL_loadstring_test")
121121file (GLOB tests LIST_DIRECTORIES false ${CMAKE_CURRENT_SOURCE_DIR} *.c *.cc)
122122foreach (filename ${tests} )
123123 get_filename_component (test_name ${filename} NAME_WE )
124- if (USE_LUAJIT AND (${test_name} IN_LIST LUAJIT_BLACKLIST_TESTS))
124+ if (IS_LUAJIT AND (${test_name} IN_LIST LUAJIT_BLACKLIST_TESTS))
125125 continue ()
126126 endif ()
127127 if ((${test_name} IN_LIST BLACKLIST_TESTS))
@@ -134,6 +134,6 @@ endforeach()
134134
135135include (ProtobufMutator)
136136add_subdirectory (luaL_loadbuffer_proto)
137- if (USE_LUAJIT )
137+ if (IS_LUAJIT )
138138 add_subdirectory (ffi_cdef_proto)
139139endif ()
0 commit comments