Change to using RefCount

This commit is contained in:
2025-09-10 02:57:48 -07:00
parent a38fef7857
commit 994827431c
6 changed files with 1110 additions and 779 deletions

View File

@ -1,10 +1,23 @@
cmake_minimum_required(VERSION 3.10)
set(CMAKE_C_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
project(simple-lisp)
project(
simple-lisp
VERSION 1.0
LANGUAGES C)
add_compile_options(-Wall -fsanitize=address,leak,undefined)
include(FetchContent)
FetchContent_Declare(
refcount
GIT_REPOSITORY https://git.zander.im/Zander671/refcount.git
GIT_TAG ae7b645b7a4919c20c75f68348347038601229f7)
FetchContent_MakeAvailable(refcount)
add_compile_options(-fsanitize=address,leak,undefined)
add_link_options(-fsanitize=address,leak,undefined)
add_executable(simple-lisp src/main.c src/lisp.c src/read.c)
target_link_libraries(simple-lisp PUBLIC refcount)
target_compile_options(simple-lisp PRIVATE -Wall -Wpedantic)