facebook / facebook/buck2

Allow passing environment variables to `cmd_args`

Open
#885 6 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

It would be nice if `cmd_args` had an `env` attribute like many of the prelude rules support. Is there a reason for not implementing it, or has it just not been an issue before?

In case this is an XY situation, the actual problem is that we'd like to `LD_PRELOAD` our C++ compiler to use jemalloc. We can use a wrapper script for that, but it makes `buck2 log what-ran` quite a bit less friendly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.