optional dependency to TGF_B_src target
This commit is contained in:
parent
f4ec21007b
commit
a5186ff88d
|
@ -51,8 +51,12 @@ endif()
|
||||||
# Define the library
|
# Define the library
|
||||||
add_library(tgfs SHARED ${LIB_SOURCES})
|
add_library(tgfs SHARED ${LIB_SOURCES})
|
||||||
# list code gen dependencies
|
# list code gen dependencies
|
||||||
add_dependencies(tgfs TGF_B_src)
|
if(TARGET TGF_B_src)
|
||||||
add_dependencies(tgfs TGF_C_src)
|
add_dependencies(tgfs TGF_B_src)
|
||||||
|
endif()
|
||||||
|
if(TARGET TGF_C_src)
|
||||||
|
add_dependencies(tgfs TGF_C_src)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_compile_options(tgfs PRIVATE -Wno-shift-count-overflow)
|
target_compile_options(tgfs PRIVATE -Wno-shift-count-overflow)
|
||||||
target_include_directories(tgfs PUBLIC incl)
|
target_include_directories(tgfs PUBLIC incl)
|
||||||
|
|
|
@ -277,8 +277,10 @@ vm_ptr create_cpu(core_wrapper* cpu, std::string const& backend, unsigned gdb_po
|
||||||
if(backend == "llvm")
|
if(backend == "llvm")
|
||||||
return vm_ptr{iss::llvm::create(lcpu, gdb_port)};
|
return vm_ptr{iss::llvm::create(lcpu, gdb_port)};
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WITH_TCC
|
||||||
if(backend == "tcc")
|
if(backend == "tcc")
|
||||||
return vm_ptr{iss::tcc::create<core_type>(cpu, gdb_port)};
|
return vm_ptr{iss::tcc::create<core_type>(cpu, gdb_port)};
|
||||||
|
#endif
|
||||||
return {nullptr};
|
return {nullptr};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue