3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-12 18:26:24 +00:00

Slang frontend integration

This commit is contained in:
Miodrag Milanovic 2026-07-06 15:49:56 +02:00
parent b285b72e36
commit 05c0adae77
10 changed files with 100 additions and 0 deletions

View file

@ -7,3 +7,41 @@ add_subdirectory(json11)
add_subdirectory(minisat)
add_subdirectory(sha1)
add_subdirectory(subcircuit)
block()
set(BUILD_SHARED_LIBS OFF)
include(FetchContent)
set(FETCHCONTENT_FULLY_DISCONNECTED ON)
option(FMT_INSTALL OFF)
FetchContent_Declare(
fmt
EXCLUDE_FROM_ALL
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/fmt
)
FetchContent_MakeAvailable(fmt)
FetchContent_Declare(
tomlplusplus
EXCLUDE_FROM_ALL
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tomlplusplus
)
FetchContent_MakeAvailable(tomlplusplus)
FetchContent_Declare(
boost_regex
EXCLUDE_FROM_ALL
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/boost_regex
SOURCE_SUBDIR _no_build_
)
FetchContent_MakeAvailable(boost_regex)
if (NOT YOSYS_WITHOUT_SLANG)
set(SLANG_USE_MIMALLOC OFF)
add_subdirectory(slang)
# Headers autodetect based on <boost/config.hpp> but when version
# does exist but does not match requirements it becomes problematic
if(NOT Boost_FOUND)
target_compile_definitions(slang_slang PRIVATE BOOST_REGEX_STANDALONE)
endif()
endif()
endblock()

1
libs/boost_regex Submodule

@ -0,0 +1 @@
Subproject commit 2b3ac0834f31086c6e3c0e0ceb8516e427d5c39d

1
libs/fmt Submodule

@ -0,0 +1 @@
Subproject commit 1be298e1bd68957e4cd352e1f676f00e07dcfb57

1
libs/slang Submodule

@ -0,0 +1 @@
Subproject commit 6175750969f17289695f94be5105f6006c82eb61

1
libs/tomlplusplus Submodule

@ -0,0 +1 @@
Subproject commit a43ad3787293f4a46b1d70c0924b5a25d10e79fc