Module bootstrap::core::build_steps::setup
source ยท Expand description
First time setup of a dev environment
These are build-and-run steps for ./x.py setup
, which allows quickly setting up the directory
for modifying, building, and running the compiler and library. Running arbitrary configuration
allows setting up things that cannot be simply captured inside the config.toml, in addition to
leading people away from manually editing most of the config.toml values.
Structsยง
- Installs
src/etc/pre-push.sh
as a Git hook - Creates a toolchain link for stage1 using
rustup
- Sets up or displays
src/etc/rust_analyzer_settings.json
Enumsยง
- PromptResult ๐
Staticsยง
- PROFILE_DIR ๐
- SETTINGS_HASHES ๐A list of historical hashes of
src/etc/rust_analyzer_settings.json
. New entries should be appended whenever this is updated so we can detect outdated vs. user-modified settings files.
Functionsยง
- Create a
.vscode/settings.json
file for rustc development, or just print it If this method should be re-called, it returnsfalse
. - prompt_user ๐Prompt a user for a answer, looping until they enter an accepted input or nothing
- rustup_installed ๐
- setup_config_toml ๐
- stage_dir_exists ๐
- toolchain_is_linked ๐
- try_link_toolchain ๐