about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide/examples/README
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/rustc-dev-guide/examples/README')
-rw-r--r--src/doc/rustc-dev-guide/examples/README11
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