Skip to content

Commit 42af41c

Browse files
anlex NanlexN
anlex N
authored andcommitted
Documentation: add "environment switch" shell
1 parent 118af59 commit 42af41c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

web/docs/environments.md

+15
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ The active environment is selected via the `MSYSTEM` environment variable.
3535
Setting `MSYSTEM` to `UCRT64` and starting a login shell will put you in that
3636
environment.
3737

38+
For example, `CLANG64` to `UCRT64`:
39+
40+
```shell
41+
me@DESKTOP CLANG64 ~
42+
$ echo $PATH
43+
/clang64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/
44+
45+
me@DESKTOP CLANG64 ~
46+
$ MSYSTEM=UCRT64 bash --login # or you run: `source shell ucrt64`
47+
48+
me@DESKTOP UCRT64 ~
49+
$ echo $PATH
50+
/ucrt64/bin::/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/
51+
```
52+
3853
## GCC vs LLVM/Clang
3954

4055
These are the default compilers/toolchains used for building all packages in the

0 commit comments

Comments
 (0)