mirror of
https://github.com/janet-lang/janet
synced 2025-01-23 21:56:52 +00:00
Remove a few refs to old emscripten files.
This commit is contained in:
parent
2e472ec9a3
commit
09aff10ff2
@ -114,7 +114,7 @@ src/include/dst/dsttypes.h
|
||||
add_executable(${TARGET_NAME} ${REPL_SOURCES})
|
||||
if (APPLE)
|
||||
# macOS flags here
|
||||
elseif (UNIX AND NOT EMSCRIPTEN)
|
||||
elseif (UNIX)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -rdynamic")
|
||||
target_link_libraries(${TARGET_NAME} m dl)
|
||||
endif (APPLE)
|
||||
@ -143,15 +143,6 @@ install(TARGETS ${TARGET_NAME}
|
||||
PUBLIC_HEADER DESTINATION "include/dst"
|
||||
)
|
||||
|
||||
# Emscripten specifics
|
||||
if (DEFINED EMSCRIPTEN)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s ABORTING_MALLOC=0")
|
||||
# set_target_properties(${TARGET_NAME} PROPERTIES SUFFIX ".html")
|
||||
# Copy index.html to build folder.
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/web/index.html
|
||||
${CMAKE_CURRENT_BINARY_DIR}/index.html COPYONLY)
|
||||
endif (DEFINED EMSCRIPTEN)
|
||||
|
||||
# Add some test scripts
|
||||
enable_testing()
|
||||
add_test(NAME suite0 COMMAND ${TARGET_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/test/suite0.dst
|
||||
|
Loading…
Reference in New Issue
Block a user