Skip to content

Commit f3d072d

Browse files
jjmaestrojsharpe
andauthored
fix: pyc files in Meson mesonbuild repo causing rebuilds (#1343)
Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
1 parent ad501b8 commit f3d072d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

toolchains/built_toolchains.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ exports_files(["meson.py"])
2020
2121
filegroup(
2222
name = "runtime",
23-
srcs = glob(["mesonbuild/**"]),
23+
# NOTE: excluding __pycache__ is important to avoid rebuilding due to pyc
24+
# files, see https://github.com/bazel-contrib/rules_foreign_cc/issues/1342
25+
srcs = glob(["mesonbuild/**"], exclude = ["**/__pycache__/*"]),
2426
visibility = ["//visibility:public"],
2527
)
2628
"""

0 commit comments

Comments
 (0)