Skip to content

Commit 0731c7e

Browse files
committed
The BAZEL_BUILD macro is used in source; explicitly define in BUILD
Right now, this is only defined in the global `.bazelrc`, but that file is not inspected if OpenROAD is used as submodule or dependency. So we need to define all the relevant macros in the relevant BUILD rules. Signed-off-by: Henner Zeller <h.zeller@acm.org>
1 parent e50dbd2 commit 0731c7e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/tst/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ cc_library(
4141
hdrs = [
4242
"include/tst/fixture.h",
4343
],
44+
defines = [
45+
"BAZEL_BUILD",
46+
],
4447
includes = [
4548
"include",
4649
],

0 commit comments

Comments
 (0)