mirror of
https://github.com/Minres/RISCV-VP.git
synced 2025-12-17 08:51:35 +00:00
updates dbt-rise-core
This commit is contained in:
@@ -6,6 +6,7 @@ project(riscv-vp LANGUAGES C CXX VERSION 1.0.0)
|
||||
option(LIBS_ONLY "Just build the shared libraries needed to build the VP" OFF)
|
||||
option(ENABLE_COVERAGE "Enable code coverage" OFF)
|
||||
option(ENABLE_SANITIZER "Enable address sanitizer" OFF)
|
||||
option(ENABLE_CLANGFORMAT "Enable code formatting using clang-format." OFF)
|
||||
option(ENABLE_CLANGTIDY "Enable static analysis with clang-tidy." OFF)
|
||||
option(ENABLE_FW_BUILD "Enable build of firmware of MIRES Firmware repo." OFF)
|
||||
option(ENABLE_GPROF "Enable gprof profiling" OFF)
|
||||
@@ -77,7 +78,10 @@ if(NOT LIBS_ONLY)
|
||||
add_subdirectory(src)
|
||||
endif()
|
||||
|
||||
find_package(ClangFormat)
|
||||
if(ENABLE_CLANGFORMAT)
|
||||
set(CLANG_FORMAT_EXCLUDE_PATTERNS "/scc/" "/build/" "/.direnv/")
|
||||
find_package(ClangFormat)
|
||||
endif()
|
||||
|
||||
if(FW_BUILD)
|
||||
include(FetchContent)
|
||||
|
||||
Reference in New Issue
Block a user