From eb63cd0800c46033e0e5b5f197caeda39f8039f2 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Mon, 12 May 2025 15:56:50 -0400 Subject: [PATCH 1/2] fix: Update source files pattern in codspeed cc_library target --- core/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/BUILD b/core/BUILD index 3c13b0d..02f091a 100644 --- a/core/BUILD +++ b/core/BUILD @@ -6,7 +6,7 @@ CODSPEED_VERSION = "1.1.0" # Define the codspeed library cc_library( name = "codspeed", - srcs = glob(["src/**/*.cpp"] + ["src/**/*.h"] + ["src/**/*.hpp"]), + srcs = glob(["src/**/*.cpp"]), hdrs = glob(["include/**/*.h"] + ["include/**/*.hpp"]), includes = ["include"], defines = [ From 796b1a62ebe694a005490547ed076a17aa8dd699 Mon Sep 17 00:00:00 2001 From: Arthur Pastel Date: Mon, 12 May 2025 16:03:56 -0400 Subject: [PATCH 2/2] chore: Add --incompatible_disallow_empty_glob flag to Bazel config --- .bazelrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bazelrc b/.bazelrc index ecc6c4e..6298f7c 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,3 +1,6 @@ build --//core:codspeed_mode=instrumentation build --compilation_mode=dbg build --copt=-O2 + +# Flip this early to avoid breaking compatibility once it becomes the default. +build --incompatible_disallow_empty_glob