makes code generation configurable

This commit is contained in:
Eyck Jentzsch 2022-09-27 09:12:12 +02:00
parent 76e58eee1c
commit e4d1bb1224
2 changed files with 9 additions and 6 deletions

View File

@ -3,6 +3,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${C
project(TGFS-ISS VERSION 1.0.0 LANGUAGES CXX)
option(CODEGEN "enable generation of ISS code" ON)
set(CORE_NAME TGC_C CACHE STRING "The core to build the ISS for" )
set(WITH_LLVM FALSE CACHE BOOL "Build LLVM based backend")
@ -104,12 +105,14 @@ if (ENABLE_CLANG_TIDY)
endif()
endif()
if(CODEGEN)
include(CodeGen)
if(NOT CORE_DSL_INPUT_DIR)
set(CORE_DSL_INPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tgfs/gen_input)
endif()
gen_coredsl(${CORE_NAME} ${CORE_DSL_INPUT_DIR}/${CORE_NAME}.core_desc interp)
endif()
add_subdirectory(dbt-rise-core)
add_subdirectory(scc)

@ -1 +1 @@
Subproject commit 6ba7c82f803c853e6b6956bb329139b52963871b
Subproject commit b20daa1ac2d60b2ce61c1b13d16e0dbcacac2682