Skip to content

Commit

Permalink
CMake: Properly build asm file in luajit
Browse files Browse the repository at this point in the history
The previous trick only works on gcc, as it accepts .s source code
  • Loading branch information
IbarakiKasen committed May 4, 2022
1 parent c0e0556 commit 5b0d015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ target_include_directories(luajit PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/vendor/lu
if(WIN32)
target_sources(luajit PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/vendor/luajit/src/lj_vm.obj")
else()
enable_language(ASM-ATT)
target_sources(luajit PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/vendor/luajit/src/lj_vm.s")
set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/vendor/luajit/src/lj_vm.s" PROPERTY LANGUAGE C)
target_link_libraries(luajit ${CMAKE_DL_LIBS})
endif()
if(APPLE)
Expand Down

0 comments on commit 5b0d015

Please sign in to comment.