about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-13 22:53:31 +0000
committerbors <bors@rust-lang.org>2022-04-13 22:53:31 +0000
commit15844bf48ce6bd4aaba7c26fa3df76415903aec1 (patch)
tree8be1a2f07997f5011df0fb55f5f64f3f44470902 /docs
parent8ab26f6abcf3d2617b229813846f9a72264e83b6 (diff)
parent73a033e77c830ef793a1c302a4794bf73a8c61c4 (diff)
downloadrust-15844bf48ce6bd4aaba7c26fa3df76415903aec1.tar.gz
rust-15844bf48ce6bd4aaba7c26fa3df76415903aec1.zip
Auto merge of #11956 - fee1-dead:master, r=flodiebold
feat: allow customizing the command for running build scripts

I have tested this locally and it fixed #9201 with some small changes on the compiler side with suggestions from https://github.com/rust-analyzer/rust-analyzer/issues/9201#issuecomment-1019554086.

I have also added an environment variable `IS_RA_BUILDSCRIPT_CHECK` for crates to detect that it is a check for buildscripts, and allows defaulting to bogus values for expected environment variables.
Diffstat (limited to 'docs')
-rw-r--r--docs/user/generated_config.adoc7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc
index d552982768b..ace74f8e08a 100644
--- a/docs/user/generated_config.adoc
+++ b/docs/user/generated_config.adoc
@@ -64,6 +64,13 @@ List of features to activate.
 --
 Run build scripts (`build.rs`) for more precise code analysis.
 --
+[[rust-analyzer.cargo.runBuildScriptsCommand]]rust-analyzer.cargo.runBuildScriptsCommand (default: `null`)::
++
+--
+Advanced option, fully override the command rust-analyzer uses to
+run build scripts and build procedural macros. The command should
+include `--message-format=json` or a similar option.
+--
 [[rust-analyzer.cargo.useRustcWrapperForBuildScripts]]rust-analyzer.cargo.useRustcWrapperForBuildScripts (default: `true`)::
 +
 --