1
0
Fork 0
forked from fun/fun

The REPL can now be disabled at build time using -DFUN_WITH_REPL=OFF. (0.17.7)

This commit is contained in:
Johannes Findeisen 2025-10-03 15:32:31 +02:00
commit 5c2273da69
4 changed files with 1149 additions and 1220 deletions

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(fun VERSION 0.17.6 LANGUAGES C)
project(fun VERSION 0.17.7 LANGUAGES C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
@ -94,7 +94,9 @@ add_executable(fun
# Provide version string to the CLI
target_compile_definitions(fun PRIVATE FUN_VERSION=\"${PROJECT_VERSION}\")
if(FUN_WITH_REPL)
target_compile_definitions(fun PRIVATE FUN_WITH_REPL=0)
# Enable REPL compilation path and add the REPL source
target_compile_definitions(fun PRIVATE FUN_WITH_REPL=1)
target_sources(fun PRIVATE src/repl.c)
endif()
target_link_libraries(fun PRIVATE fun_core)