Skip to content

Commit

Permalink
fix wrong conditon in deps/luajit.cmake
Browse files Browse the repository at this point in the history
bug report in luvit/luvi#264
  • Loading branch information
zhaozg committed Aug 24, 2022
1 parent 7b0f5b8 commit 97a84fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/luajit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ ELSEIF(NOT WIN32)
# code can't use it (at least without modifying the test code)
execute_process(COMMAND "${CMAKE_C_COMPILER}" -c -x c "${TMPUNWIND_DIR}/tmpunwind.c" -o "${TMPUNWIND_DIR}/tmpunwind.o"
RESULT_VARIABLE UNWIND_TEST_ERRORED)
IF(NOT UNWIND_TEST_ERRORED)
IF(UNWIND_TEST_ERRORED EQUAL 0)
file(READ "${TMPUNWIND_DIR}/tmpunwind.o" TMPUNWIND_O)
string(FIND "${TMPUNWIND_O}" "eh_frame" EH_FRAME_FOUND)
string(FIND "${TMPUNWIND_O}" "__unwind_info" UNWIND_INFO_FOUND)
IF(EH_FRAME_FOUND OR UNWIND_INFO_FOUND)
IF(EH_FRAME_FOUND GREATER -1 OR UNWIND_INFO_FOUND GREATER -1)
SET(TOOLCHAIN_GENERATES_UNWIND_TABLES 1)
ENDIF()
ENDIF()
Expand Down

0 comments on commit 97a84fc

Please sign in to comment.