Skip to content

Commit

Permalink
script refresh for linux, oss-cad-suite
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Jan 20, 2024
1 parent 0b71ebb commit 1e3de60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ if (INSTALL_IN_REPO)

else()

install(TARGETS silice RUNTIME)
install(TARGETS libsilice ARCHIVE)
install(TARGETS silice RUNTIME DESTINATION bin/)
install(TARGETS libsilice ARCHIVE DESTINATION bin/)
install(FILES bin/silice-make.py DESTINATION bin/)
install(FILES bin/report-cycles.py DESTINATION bin/)
install(DIRECTORY frameworks DESTINATION share/silice/)
Expand Down
5 changes: 3 additions & 2 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ add_subdirectory(pybind11)

pybind11_add_module(_silice MODULE pysilice.cpp)

target_link_libraries(_silice libsilice lua luabind antlr4_static)
target_link_libraries(_silice PRIVATE libsilice lua luabind antlr4_static)
if(WIN32)
target_link_libraries(_silice shlwapi)
target_link_libraries(_silice PRIVATE shlwapi)
endif(WIN32)

target_compile_definitions(_silice PRIVATE VERSION_INFO="0.1")
Expand All @@ -51,3 +51,4 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_link_libraries(_silice stdc++fs)
endif()
endif()

3 changes: 2 additions & 1 deletion python/pysilice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ class Unit
m_Blueprint.unit = m_Compiler->isStaticBlueprint(m_Name);
if (m_Blueprint.unit.isNull()) {
try {
m_Blueprint = m_Compiler->parseUnitIOs(m_Name);
Blueprint::t_instantiation_context ictx;
m_Blueprint = m_Compiler->parseUnitIOs(m_Name, ictx);
} catch (Fatal&) {
throw Fatal("could not instantiate unit '%s'", m_Name.c_str());
}
Expand Down

0 comments on commit 1e3de60

Please sign in to comment.