3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-26 02:30:37 +00:00

Add option to build without slang

This commit is contained in:
Miodrag Milanovic 2026-06-18 12:57:10 +02:00
parent fd2d0ab0f4
commit ad139b7118
3 changed files with 9 additions and 3 deletions

View file

@ -17,6 +17,8 @@ FetchContent_Declare(
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/fmt
)
FetchContent_MakeAvailable(fmt)
set(SLANG_USE_MIMALLOC OFF)
add_subdirectory(slang)
if (NOT YOSYS_WITHOUT_SLANG)
set(SLANG_USE_MIMALLOC OFF)
add_subdirectory(slang)
endif()
set(BUILD_SHARED_LIBS "${_old_BUILD_SHARED_LIBS}")