bazel-contrib / bazel-contrib/rules_foreign_cc

Add mechanism to avoid deleting temporary temporary directories

Open
#963 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

BUILD_TMPDIR and EXT_BUILD_DEPS are deleted before and after running the build command, which means that rebuilds of the external project need to build every single file, which can be expensive for larger projects.

It would be nice if there was an option to avoid deleting those directories; that would increase the risk of correctness problems, but could be useful for development purposes.

Contributor guide

Open the contributing guide

Research direction

Start by tracing where BUILD_TMPDIR and EXT_BUILD_DEPS are created and deleted around the build command. Determine how an opt-out could be exposed without changing the default cleanup behavior. Done means development rebuilds can preserve both directories when requested, while the existing deletion behavior remains the default.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.