You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix SYSTEMC_UNITY_BUILD for static builds with custom main()
When building SystemC as a static library with SYSTEMC_UNITY_BUILD=ON,
linking fails if the user defines their own main() (e.g., in a test)
because the internal sc_main.cpp object is included in the unity build
and conflicts with the custom main().
This patch excludes sc_main.cpp from unity builds to restore expected
behavior for static linking scenarios with external main() definitions.
Signed-off-by: Ruben Brandhofer <[email protected]>
0 commit comments