You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to update environment variables as some of the installed tools are not
139
-
yet added to the PATH environment variable, we also need to add LIBCLANG_PATH
140
-
environment variable to avoid conflicts with the system Clang. The environment
141
-
variables that we need to update are shown at the end of the install script and
142
-
stored in an export file. By default this export file is `export-esp.sh` but can
143
-
be modified with the `-f|--export-file` argument.
144
-
145
-
We must set the environment variables in every terminal session.
146
-
147
-
148
-
> **Note**
149
-
> If the export variables are added to the shell startup script, the shell may need to be refreshed.
150
-
151
-
#### Arguments
152
-
- `-b|--build-target`: Comma separated list of targets \[`esp32,esp32s2,esp32s3,esp32c3,all`]. Defaults to: `esp32,esp32s2,esp32s3`
153
-
- `-c|--cargo-home`: Cargo path.
154
-
- `-d|--toolchain-destination`: Toolchain installation folder. Defaults to: `<rustup_home>/toolchains/esp`
155
-
- `-e|--extra-crates`: Extra crates to install. Defaults to: `ldproxy cargo-espflash`
156
-
- `-f|--export-file`: Destination of the export file generated. Defaults to: `export-esp.sh`
157
-
- `-i|--installation-mode`: Installation mode: \[`install, reinstall, uninstall`]. Defaults to: `install`
158
-
- `-k|--minified-llvm`: Use minified LLVM. Possible values: \[`YES, NO`]. Defaults to: `YES`
159
-
- `-l|--llvm-version`: LLVM version.
160
-
- `-m|--minified-esp-idf`: \[Only applies if using `-s|--esp-idf-version`]. Deletes some idf folders to save space. Possible values \[`YES, NO`]. Defaults to: `NO`
161
-
- `-n|--nightly-version`: Nightly Rust toolchain version. Defaults to: `nightly`
162
-
- `-r|--rustup-home`: Path to .rustup. Defaults to: `~/.rustup`
163
-
- `-s|--esp-idf-version`: [ESP-IDF branch](https://github.com/espressif/esp-idf/branches) to install. When empty, no esp-idf is installed. Default: `""`
164
-
- `-t|--toolchain-version`: Xtensa Rust toolchain version
165
-
- `-x|--clear-cache`: Removes cached distribution files. Possible values: \[`YES, NO`]. Defaults to: `YES`
166
-
167
-
#### Windows Long path limitation
168
-
169
-
Several build tools have problem with long paths on Windows including Git and CMake. We recommend to put project on short path or use command `subst` to map the directory with the project to separate disk letter.
170
-
171
-
```
172
-
subst "R:" "rust-project"
173
-
```
174
-
175
87
### Windows x86_64 MSVC
176
88
177
89
The following instructions are specific for the ESP32 and ESP32-S series based on Xtensa architecture. If you do not have Visual Studio and Windows 10 SDK installed, consider the alternative option [Windows x86_64 GNU](#windows-x86_64-gnu).
Several build tools have problem with long paths on Windows including Git and CMake. We recommend to put project on short path or use command `subst` to map the directory with the project to separate disk letter.
243
-
244
-
```
245
-
subst "R:" "rust-project"
246
-
```
247
-
248
152
## RISC-V Installation
249
153
250
154
The following instructions are specific for ESP32-C based on RISC-V architecture.
0 commit comments