diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2023-02-15 16:40:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-15 11:40:25 -0300 |
| commit | 648cf5f8ac524185cfa9fecf4e699b01d363dbe9 (patch) | |
| tree | aef2cf49bf2007e48fe0f43184804159d587cc4f /src/doc/rustc-dev-guide/examples/README | |
| parent | 240f076d804d8682994c49a92b5407ebbbe1fe3a (diff) | |
howto run the examples (#1593)
Diffstat (limited to 'src/doc/rustc-dev-guide/examples/README')
| -rw-r--r-- | src/doc/rustc-dev-guide/examples/README | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/examples/README b/src/doc/rustc-dev-guide/examples/README new file mode 100644 index 00000000000..ca49dd74db2 --- /dev/null +++ b/src/doc/rustc-dev-guide/examples/README @@ -0,0 +1,11 @@ +For each example to compile, you will need to first run the following: + + rustup component add rustc-dev llvm-tools + +To create an executable: + + rustc rustc-driver-example.rs + +To run an executable: + + rustup run nightly ./rustc-driver-example |
