mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
add check libpthread if can be found, once found it, link it, otherwise do not link it. Beacause on Android, unlike Linux, there are no separate libpthread libraries. That functionality is included directly in libc
This commit is contained in:
parent
d11e8277c2
commit
bd2dbe7612
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,10 @@ if(LUAU_BUILD_CLI)
|
||||||
target_link_libraries(Luau.Repl.CLI PRIVATE Luau.Compiler Luau.VM)
|
target_link_libraries(Luau.Repl.CLI PRIVATE Luau.Compiler Luau.VM)
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
target_link_libraries(Luau.Repl.CLI PRIVATE pthread)
|
find_library(LIBPTHREAD pthread)
|
||||||
|
if (LIBPTHREAD)
|
||||||
|
target_link_libraries(Luau.Repl.CLI PRIVATE pthread)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT EMSCRIPTEN)
|
if(NOT EMSCRIPTEN)
|
||||||
|
|
Loading…
Add table
Reference in a new issue