From 67c099b5335e8a5a094fa2e255a52c9528c58c81 Mon Sep 17 00:00:00 2001 From: comphead Date: Tue, 10 Dec 2024 15:28:28 -0800 Subject: [PATCH] CI: Windows compilation time --- .github/workflows/rust.yml | 2 +- Cargo.toml | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3b3c4cca4d961..de55285325b6f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 00f70973e2c3c..b53b1c55a597b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"