This project uses bracket includes for dependencies that are
actually vendored via the MODULE.bazel.
So they should use `"zlib.h"`, `"tcl.h"` etc, but here they
use `<zlib.h>`, `<tcl.h>` which makes them look like system headers.
They are meant to be using the vendored headers, to explicitly tell
build_cleaner (`bant`) that the dependencies should be kept.
(ideally, we fix the includes, but since this is a fork, this might
be harder to maintain).
Also keeps `@openmp` for now, but see #364 if this is actually
needed.
Signed-off-by: Henner Zeller <h.zeller@acm.org>
The bazel compile always happens as submodule in OpenROAD, so
we can use the same mechanism provided there to set up the
readline library.
Signed-off-by: Henner Zeller <h.zeller@acm.org>
In https://github.com/The-OpenROAD-Project/OpenROAD/pull/10041
we have a new way to initializa the tcl subsystem which
will allow to be entirely independent of separate files
once we can switch to Tcl9.
Signed-off-by: Henner Zeller <h.zeller@acm.org>
On MacOS the MachineApple.cc must be used instead of
MachineLinux.cc. I added a select statement.
Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>
The tcl version in the bazel central registry supports MacOS and
it can be used via MODULES.bazel instead of WORKSPACE.
Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>