Skip to content

Commit

Permalink
CI: Windows compilation time
Browse files Browse the repository at this point in the history
  • Loading branch information
comphead committed Dec 13, 2024
1 parent 3cf8007 commit cb81473
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
shell: bash
run: |
export PATH=$PATH:$HOME/d/protoc/bin
export RUSTFLAGS="-C link-arg=-fuse-ld=lld -C target-cpu=native -C debuginfo=line-tables-only"
unset RUSTFLAGS
echo $RUSTFLAGS
cargo test --lib --tests --bins --features avro,json,backtrace --profile=release-windows
cd datafusion-cli
Expand Down
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,22 @@ panic = 'unwind'
rpath = false

[profile.release-windows]
codegen-units = 1024
codegen-units = 16
debug = 'line-directives-only'
debug-assertions = false
incremental = true
incremental = false
inherits = "release"
lto = false
opt-level = 1
opt-level = 3
overflow-checks = false
panic = 'unwind'
rpath = false

[profile.release-windows.build-override]
opt-level = 0
codegen-units = 256
debug = false

[workspace.lints.clippy]
# Detects large stack-allocated futures that may cause stack overflow crashes (see threshold in clippy.toml)
large_futures = "warn"
Expand Down

0 comments on commit cb81473

Please sign in to comment.