Skip to content

Commit 67c099b

Browse files
committed
CI: Windows compilation time
1 parent cdb463d commit 67c099b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
shell: bash
5353
run: |
5454
export PATH=$PATH:$HOME/d/protoc/bin
55-
export RUSTFLAGS="-C link-arg=-fuse-ld=lld -C target-cpu=native -C debuginfo=line-tables-only"
55+
unset RUSTFLAGS
5656
echo $RUSTFLAGS
5757
cargo test --lib --tests --bins --features avro,json,backtrace --profile=release-windows
5858
cd datafusion-cli

Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,22 @@ panic = 'unwind'
171171
rpath = false
172172

173173
[profile.release-windows]
174-
codegen-units = 1024
174+
codegen-units = 16
175175
debug = 'line-directives-only'
176176
debug-assertions = false
177-
incremental = true
177+
incremental = false
178178
inherits = "release"
179179
lto = false
180-
opt-level = 1
180+
opt-level = 3
181181
overflow-checks = false
182182
panic = 'unwind'
183183
rpath = false
184184

185+
[profile.release-windows.build-override]
186+
opt-level = 0
187+
codegen-units = 256
188+
debug = false
189+
185190
[workspace.lints.clippy]
186191
# Detects large stack-allocated futures that may cause stack overflow crashes (see threshold in clippy.toml)
187192
large_futures = "warn"

0 commit comments

Comments
 (0)