diff options
| author | ywxt <ywxtcwh@gmail.com> | 2025-08-13 09:23:41 +0800 |
|---|---|---|
| committer | ywxt <ywxtcwh@gmail.com> | 2025-08-13 09:42:46 +0800 |
| commit | bc8a52161950a59cc1d8f118d1fb10ab5890e84e (patch) | |
| tree | d5fe19410903157a144525fa6a60acce2c0dc4eb /src | |
| parent | 075ce31bd39c68b911edda233f0af3f40113212b (diff) | |
| download | rust-bc8a52161950a59cc1d8f118d1fb10ab5890e84e.tar.gz rust-bc8a52161950a59cc1d8f118d1fb10ab5890e84e.zip | |
Fix pgo tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/run-make-support/src/external_deps/rustc.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/run-make-support/src/external_deps/rustc.rs b/src/tools/run-make-support/src/external_deps/rustc.rs index 60d3366ee98..b74b1d5e166 100644 --- a/src/tools/run-make-support/src/external_deps/rustc.rs +++ b/src/tools/run-make-support/src/external_deps/rustc.rs @@ -405,6 +405,12 @@ impl Rustc { }; self } + + /// Make that the generated LLVM IR is in source order. + pub fn codegen_source_order(&mut self) -> &mut Self { + self.cmd.arg("-Zcodegen-source-order"); + self + } } /// Query the sysroot path corresponding `rustc --print=sysroot`. |
