use extracted variables

This commit is contained in:
2021-03-27 09:36:52 +00:00
parent 78c7064295
commit 32e4aa83b8
3 changed files with 89 additions and 160 deletions

View File

@ -34,7 +34,7 @@ set(LIB_SOURCES
src/plugin/instruction_count.cpp
src/plugin/cycle_estimate.cpp
)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/iss/tgf_b.cpp)
if(EXISTS src/iss/tgf_b.cpp)
set(LIB_SOURCES ${LIB_SOURCES} src/iss/tgf_b.cpp src/vm/interp/vm_tgf_b.cpp)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/iss/tgf_c.cpp)
@ -43,8 +43,8 @@ endif()
if(WITH_LLVM)
set(LIB_SOURCES ${LIB_SOURCES}
src/vm/llvm/fp_impl.cpp
src/vm/llvm/vm_tgf_b.cpp
src/vm/llvm/vm_tgf_c.cpp
# src/vm/llvm/vm_tgf_b.cpp
# src/vm/llvm/vm_tgf_c.cpp
)
endif()
@ -52,10 +52,10 @@ endif()
add_library(${PROJECT_NAME} SHARED ${LIB_SOURCES})
# list code gen dependencies
if(TARGET TGF_B_src)
add_dependencies(tgfs TGF_B_src)
add_dependencies(${PROJECT_NAME} TGF_B_src)
endif()
if(TARGET TGF_C_src)
add_dependencies(tgfs TGF_C_src)
add_dependencies(${PROJECT_NAME} TGF_C_src)
endif()
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-shift-count-overflow)