mirror of https://github.com/YosysHQ/yosys.git
Add option to use bundled libs
This commit is contained in:
parent
30ba4328e7
commit
3541e31457
|
|
@ -93,7 +93,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
rm -rf build
|
rm -rf build
|
||||||
cmake -B build . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DYOSYS_COMPILER_LAUNCHER=ccache
|
cmake -B build . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DYOSYS_COMPILER_LAUNCHER=ccache -DYOSYS_USE_BUNDLED_LIBS=ON
|
||||||
cmake --build build -j$procs
|
cmake --build build -j$procs
|
||||||
ctest --test-dir build/tests/unit
|
ctest --test-dir build/tests/unit
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,8 @@ option(YOSYS_WITHOUT_SLANG "Disable Slang integration" OFF)
|
||||||
option(YOSYS_WITHOUT_TCL "Disable Tcl integration" OFF)
|
option(YOSYS_WITHOUT_TCL "Disable Tcl integration" OFF)
|
||||||
option(YOSYS_WITH_PYTHON "Enable Python integration" OFF)
|
option(YOSYS_WITH_PYTHON "Enable Python integration" OFF)
|
||||||
|
|
||||||
|
option(YOSYS_USE_BUNDLED_LIBS "Use bundled third-party libraries" OFF)
|
||||||
|
|
||||||
set(YOSYS_VERIFIC_DIR "" CACHE FILEPATH "Path to the Verific source code (empty to disable)")
|
set(YOSYS_VERIFIC_DIR "" CACHE FILEPATH "Path to the Verific source code (empty to disable)")
|
||||||
set(YOSYS_VERIFIC_COMPONENTS "" CACHE STRING
|
set(YOSYS_VERIFIC_COMPONENTS "" CACHE STRING
|
||||||
"List of Verific components to link (empty for autodetect)")
|
"List of Verific components to link (empty for autodetect)")
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@ block()
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
set(FETCHCONTENT_FULLY_DISCONNECTED ON)
|
set(FETCHCONTENT_FULLY_DISCONNECTED ON)
|
||||||
|
|
||||||
|
if(NOT YOSYS_USE_BUNDLED_LIBS)
|
||||||
find_package(fmt 12.2 QUIET)
|
find_package(fmt 12.2 QUIET)
|
||||||
|
endif()
|
||||||
if(fmt_FOUND)
|
if(fmt_FOUND)
|
||||||
set(SLANG_USE_SYSTEM_FMT ON)
|
set(SLANG_USE_SYSTEM_FMT ON)
|
||||||
else()
|
else()
|
||||||
|
|
@ -25,7 +27,9 @@ block()
|
||||||
FetchContent_MakeAvailable(fmt)
|
FetchContent_MakeAvailable(fmt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT YOSYS_USE_BUNDLED_LIBS)
|
||||||
find_package(tomlplusplus 3.4 QUIET)
|
find_package(tomlplusplus 3.4 QUIET)
|
||||||
|
endif()
|
||||||
if(tomlplusplus_FOUND)
|
if(tomlplusplus_FOUND)
|
||||||
set(SLANG_USE_SYSTEM_TOMLPLUSPLUS ON)
|
set(SLANG_USE_SYSTEM_TOMLPLUSPLUS ON)
|
||||||
else()
|
else()
|
||||||
|
|
@ -37,7 +41,9 @@ block()
|
||||||
FetchContent_MakeAvailable(tomlplusplus)
|
FetchContent_MakeAvailable(tomlplusplus)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT YOSYS_USE_BUNDLED_LIBS)
|
||||||
find_package(Boost 1.87.0 CONFIG QUIET)
|
find_package(Boost 1.87.0 CONFIG QUIET)
|
||||||
|
endif()
|
||||||
if(Boost_FOUND)
|
if(Boost_FOUND)
|
||||||
set(SLANG_USE_SYSTEM_BOOST ON)
|
set(SLANG_USE_SYSTEM_BOOST ON)
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue