Merge pull request #5932 from YosysHQ/cmake_fixes

Populate link_flags in yosys-config
This commit is contained in:
Miodrag Milanović 2026-06-04 11:10:02 +00:00 committed by GitHub
commit d7093743b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,9 @@ function(yosys_config_script scope)
if (MINGW)
set(platform_libs -l:yosys.exe.a)
endif()
if (MINGW AND YOSYS_INSTALL_DRIVER)
set(platform_link_flags -L${LIBDIR})
endif()
set(CXX ${CMAKE_CXX_COMPILER})
string(JOIN " " CXXFLAGS
@ -47,6 +50,7 @@ function(yosys_config_script scope)
)
string(JOIN " " LINKFLAGS
${CMAKE_SHARED_LIBRARY_CXX_FLAGS}
${link_flags}
${platform_link_flags}
)
string(JOIN " " LIBS