Open donn opened 1 year ago
Can you add a -I flag to include the system header when you generate the cmake project?
Already do: didn't work
-DCMAKE_CXX_FLAGS=-I$ABC_PREFIX/include
I should note: the angled brackets did not work without the -I
flag either iirc.
Ah, that's probably because we don't propagate compile flags to the abc subproject. I think there's some cmake function that will let you do that.
However, the only tier 1 supported version of ABC is the version bundled with OpenROAD so I think it would require an enhancement from you or another interested party to make this work more seamlessly in your flow.
To be clear, I am building the one in https://github.com/the-openroad-project/abc, but I getcha.
I'll see if I can come up with something that works for everybody.
Describe the bug
I build OpenROAD ABC separately from OpenROAD to better cache builds, as ABC represents around 50% of OpenROAD's compile time from my experience and is changed very infrequently + mitigates https://github.com/The-OpenROAD-Project/OpenROAD/issues/2833, where the most frequent offender is the
libabc.a
creation.The file
src/rmp/src/Restructure.cpp
has two imports:These two imports assume the headers are not being used as a system library.
This is the simplest workaround:
Expected Behavior
The
#include
should work regardless of the mode ABC is being used in.Environment
To Reproduce
N/A
Relevant log output
No response
Screenshots
No response
Additional Context
No response