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,13 +105,15 @@ if (ENABLE_CLANG_TIDY)
endif()
endif()
include(CodeGen)
if(NOT CORE_DSL_INPUT_DIR)
set(CORE_DSL_INPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tgfs/gen_input)
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()
gen_coredsl(${CORE_NAME} ${CORE_DSL_INPUT_DIR}/${CORE_NAME}.core_desc interp)
add_subdirectory(dbt-rise-core)
add_subdirectory(scc)
add_subdirectory(dbt-rise-tgc)

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