clangir icon indicating copy to clipboard operation
clangir copied to clipboard

Use shared libs for github actions

Open gitoleg opened this issue 9 months ago • 8 comments

Maybe we should add one more github action and build with shared libraries as well.
It's not a very frequent case, but it happens sometimes - I mean when building with shared libraries may cause some problems.

This time (as far as I understand, though I may be wrong) this happens because of #638 and now we have a circular dependency:

CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
  "clangCodeGen" of type SHARED_LIBRARY
    depends on "clangCIRFrontendAction" (weak)
  "clangCIRFrontendAction" of type SHARED_LIBRARY
    depends on "clangCodeGen" (weak)
    depends on "clangCIRLoweringDirectToLLVM" (weak)
    depends on "clangCIRLoweringThroughMLIR" (weak)
  "clangCIRLoweringDirectToLLVM" of type SHARED_LIBRARY
    depends on "clangCodeGen" (weak)
  "clangCIRLoweringThroughMLIR" of type SHARED_LIBRARY
    depends on "clangCodeGen" (weak)
At least one of these targets is not a STATIC_LIBRARY.  Cyclic dependencies are allowed only among static libraries.
CMake Generate step failed.  Build files cannot be regenerated correctly.

OR ... Am I missing something?

gitoleg avatar Jun 04 '24 07:06 gitoleg