From 0731c7e732173b908147a024a05030e4d2218966 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Sun, 7 Jun 2026 17:46:43 +0200 Subject: [PATCH] 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 --- src/tst/BUILD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tst/BUILD b/src/tst/BUILD index fb8689f70a9..8ac21dc1de0 100644 --- a/src/tst/BUILD +++ b/src/tst/BUILD @@ -41,6 +41,9 @@ cc_library( hdrs = [ "include/tst/fixture.h", ], + defines = [ + "BAZEL_BUILD", + ], includes = [ "include", ],