Skip to content

Commit

Permalink
adding install path in preprocessor search directories
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Aug 26, 2024
1 parent a1ca8fb commit 0f265b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ else()
install(PROGRAMS bin/report-cycles.py DESTINATION bin/)
install(FILES projects/ice-v/CPUs/ice-v.si DESTINATION share/silice/projects/ice-v/CPUs/)
install(FILES projects/ice-v/CPUs/ice-v-dual.si DESTINATION share/silice/projects/ice-v/CPUs/)
install(FILES projects/common/divint_std.si DESTINATION share/silice/projects/common/)
install(DIRECTORY projects/common DESTINATION share/silice/projects/ USE_SOURCE_PERMISSIONS)
install(DIRECTORY frameworks DESTINATION share/silice/ USE_SOURCE_PERMISSIONS)
install(DIRECTORY src/libs/LibSL-small DESTINATION share/silice/src/libs/)

Expand Down
2 changes: 2 additions & 0 deletions src/LuaPreProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,8 @@ void LuaPreProcessor::generateBody(
// add current directory to search dirs
m_SearchPaths.push_back(getCurrentPath());
m_SearchPaths.push_back(extractPath(fileAbsolutePath(src_file)));
m_SearchPaths.push_back(std::string(SILICE_DEFAULT_PATH) + "/projects/common/");
m_SearchPaths.push_back(std::string(SILICE_DEFAULT_PATH) + "/share/silice/projects/common/");

// get code
std::unordered_set<std::string> inclusions;
Expand Down

0 comments on commit 0f265b4

Please sign in to comment.