Skip to content

Commit 327e748

Browse files
authored
Add -Cllvm-args="--switch-to-lookup=true" to Cargo config (#1873)
add -Cllvm-args="--switch-to-lookup=true" to .cargo/config.toml
1 parent 82f4a18 commit 327e748

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.cargo/config.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[build]
2+
rustflags = [
3+
# This flag is extremely important to make LLVM _not_ pessimize
4+
# codegen for the conversion of `OpCode` to execution handler.
5+
# This resulted in massive wins for compile-time and execution
6+
# performance, especially when `indirect-dispatch` is enabled.
7+
#
8+
# Tested with: Rust 1.96 using LLVM 22.1.2
9+
"-C",
10+
"llvm-args=--switch-to-lookup=true",
11+
]

0 commit comments

Comments
 (0)