From 710b25a18e4f9549dff443b85576eccb4dacaab0 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sun, 8 Sep 2019 07:05:22 +0200 Subject: [PATCH] typo (#441) --- src/codegen/debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen/debugging.md b/src/codegen/debugging.md index 51d5a3b2..a6ad91dd 100644 --- a/src/codegen/debugging.md +++ b/src/codegen/debugging.md @@ -40,7 +40,7 @@ hard to replicate manually and means that LLVM is called multiple times in parallel. If you can get away with it (i.e. if it doesn't make your bug disappear), passing `-C codegen-units=1` to rustc will make debugging easier. -To rustc to generate LLVM IR, you need to pass the `--emit=llvm-ir` flag. If +For rustc to generate LLVM IR, you need to pass the `--emit=llvm-ir` flag. If you are building via cargo, use the `RUSTFLAGS` environment variable (e.g. `RUSTFLAGS='--emit=llvm-ir'`). This causes rustc to spit out LLVM IR into the target directory.