2024-08-15 02:11:26 -07:00
|
|
|
cmake_minimum_required(VERSION 3.15.0)
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS YES)
|
|
|
|
|
|
|
|
project(simple-lisp)
|
|
|
|
|
2024-09-24 07:03:52 -07:00
|
|
|
set(BOOTSTRAP_FILES main.c parse.c ast.c constants.c compile.c)
|
2024-08-15 02:11:26 -07:00
|
|
|
|
2024-09-23 04:39:35 -07:00
|
|
|
foreach(FILE IN LISTS BOOTSTRAP_FILES)
|
|
|
|
list(APPEND REAL_BOOTSTRAP_FILES "bootstrap/${FILE}")
|
2024-08-15 02:11:26 -07:00
|
|
|
endforeach()
|
|
|
|
|
2024-09-23 04:39:35 -07:00
|
|
|
add_executable(bootstrap-slc ${REAL_BOOTSTRAP_FILES})
|
|
|
|
|
|
|
|
target_link_libraries(bootstrap-slc m)
|
2024-09-27 04:50:47 -07:00
|
|
|
# target_link_libraries(bootstrap-slc m "-fsanitize=undefined" "-fsanitize=address")
|
|
|
|
# target_compile_options(bootstrap-slc PUBLIC "-fsanitize=undefined" "-fsanitize=address")
|