mirror of
https://github.com/walterschell/Lua.git
synced 2024-11-10 01:01:46 +00:00
Remove libm from emcripten builds
This commit is contained in:
parent
7f19c453f6
commit
11ca778bb1
2
.github/workflows/build-emscripten.yml
vendored
2
.github/workflows/build-emscripten.yml
vendored
@ -33,5 +33,5 @@ jobs:
|
|||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build
|
||||||
shell: bash
|
shell: bash
|
||||||
# Execute the build. You can specify a specific target with "--target <NAME>"
|
# Execute the build. You can specify a specific target with "--target <NAME>"
|
||||||
run: emcmake cmake --build . --config $BUILD_TYPE
|
run: cmake --build . --config $BUILD_TYPE
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ target_include_directories(lua_static PUBLIC "include")
|
|||||||
if(UNIX)
|
if(UNIX)
|
||||||
set(LUA_DEFINITIONS)
|
set(LUA_DEFINITIONS)
|
||||||
|
|
||||||
|
if(NOT EMSCRIPTEN)
|
||||||
find_library(LIBM m)
|
find_library(LIBM m)
|
||||||
#TODO: Redo this with find_package
|
#TODO: Redo this with find_package
|
||||||
if(NOT LIBM)
|
if(NOT LIBM)
|
||||||
@ -51,6 +52,8 @@ if(UNIX)
|
|||||||
target_compile_definitions(lua_static PRIVATE "LUA_USE_DLOPEN")
|
target_compile_definitions(lua_static PRIVATE "LUA_USE_DLOPEN")
|
||||||
target_link_libraries(lua_static INTERFACE dl)
|
target_link_libraries(lua_static INTERFACE dl)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
target_compile_definitions(lua_static
|
target_compile_definitions(lua_static
|
||||||
PUBLIC ${LUA_DEFINITIONS}
|
PUBLIC ${LUA_DEFINITIONS}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user