Skip to content

proposal: support indirect dependency #226

@MeteorsLiu

Description

@MeteorsLiu

We found libxml2 requires zlib indirectly, which means it requires zlib in code but not in header.

In that case, llcppg cannot recognize this indirect dependency, which will cause the failure of llpkg dependency analyzing.

So i proposal to add a blank module path to solve indirect dependency.

Example:
libxml2_autogen_link.go:

import _ "github.com/goplus/llpkg/zlib"

llcppg.cfg:

{
  ...
  deps: [..., "github.com/goplus/llpkg/[email protected]"]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions