Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit e2bf51a

Browse files
ngorogiannisfacebook-github-bot
authored andcommitted
tell infer it's running under buck
Summary: Infer used to rely on env var `INFER_ARGS` containing `--buck` so as to know it's running under buck. This is no longer going to work in RE as env vars don't translate. This is used in infer to clean up the output and make it suitable for caching. This diff makes the flavour explicitly tell the infer invoked it's running under buck via a command line argument. Reviewed By: cjhopman fbshipit-source-id: 888a83fbcd5ed291281100e755a56e0894ae4dad
1 parent c9acd32 commit e2bf51a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/com/facebook/buck/cxx/CxxInferCaptureRule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ protected ImmutableList<String> getShellCommandInternal(
209209
// that gets shipped as input to a RE job
210210
.addAll(inferPlatform.getInferBin().getCommandPrefix(sourcePathResolver))
211211
.add("capture")
212+
.add("--buck")
212213
.add(
213214
"--results-dir",
214215
toAbsNormalizedPath(

0 commit comments

Comments
 (0)