mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-06 00:50:57 +00:00
Merge pull request #5932 from YosysHQ/cmake_fixes
Populate link_flags in yosys-config
This commit is contained in:
commit
d7093743b8
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue