Skip to content

Commit

Permalink
Build deps of header only targets.
Browse files Browse the repository at this point in the history
Fixes #126.
  • Loading branch information
egorpugin committed Feb 29, 2024
1 parent 5db36d2 commit e0b66ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sw/core/build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,9 @@ Commands SwBuild::getCommands() const
std::function<void(const TargetSettings &)> gather_ttb;
gather_ttb = [this, &gather_ttb, &ttb](const auto &s) mutable
{
if (s["header_only"] == "true")
return;
// ho targets want to build their deps
//if (s["header_only"] == "true")
//return;

if (!(s["type"] == "native_shared_library" || s["type"] == "native_static_library" || s["type"] == "native_executable"))
return;
Expand Down

0 comments on commit e0b66ba

Please sign in to comment.