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

Commit

Permalink
tell infer it's running under buck
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ngorogiannis authored and facebook-github-bot committed Sep 16, 2021
1 parent c9acd32 commit e2bf51a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/facebook/buck/cxx/CxxInferCaptureRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ protected ImmutableList<String> getShellCommandInternal(
// that gets shipped as input to a RE job
.addAll(inferPlatform.getInferBin().getCommandPrefix(sourcePathResolver))
.add("capture")
.add("--buck")
.add(
"--results-dir",
toAbsNormalizedPath(
Expand Down

0 comments on commit e2bf51a

Please sign in to comment.