rustc-dev-guide/examples
bjorn3 851d9a5b20 Remove set_make_codegen_backend and set_file_loader
They can both be set inside the config callback too.
2025-01-23 09:38:58 +00:00
..
README howto run the examples (#1593) 2023-02-15 11:40:25 -03:00
rustc-driver-example.rs Remove set_make_codegen_backend and set_file_loader 2025-01-23 09:38:58 +00:00
rustc-driver-interacting-with-the-ast.rs Remove set_make_codegen_backend and set_file_loader 2025-01-23 09:38:58 +00:00
rustc-interface-example.rs Rework the driver docs (#2162) 2024-12-27 20:40:32 +08:00
rustc-interface-getting-diagnostics.rs Rework the driver docs (#2162) 2024-12-27 20:40:32 +08:00

README

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