Skip to content

Commit f42572d

Browse files
authored
Merge pull request #33286 from def-/pr-fix-pr-detection-bazel
ci: Switch to LTO on non-PR branches too
2 parents 480e15e + 51534bb commit f42572d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/mkpipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def main() -> int:
121121
pipeline.get("env", {}).get("CI_BAZEL_LTO", 0) == 1
122122
or bool(os.environ["BUILDKITE_TAG"])
123123
or (
124-
os.environ["BUILDKITE_BRANCH"] == "main"
124+
not ui.env_is_truthy("BUILDKITE_PULL_REQUEST")
125125
and args.pipeline in ("nightly", "release-qualification")
126126
)
127127
or ui.env_is_truthy("CI_RELEASE_LTO_BUILD")

0 commit comments

Comments
 (0)