From cdb463d4b82f146caa03e1ebedf0f0a7cfbb6123 Mon Sep 17 00:00:00 2001 From: comphead Date: Tue, 10 Dec 2024 14:56:18 -0800 Subject: [PATCH] CI: Windows compilation time --- .github/workflows/rust.yml | 5 +++-- Cargo.toml | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 01fd56ba69619..3b3c4cca4d961 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -52,8 +52,9 @@ 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" echo $RUSTFLAGS - cargo test --lib --tests --bins --features avro,json,backtrace --profile windows + cargo test --lib --tests --bins --features avro,json,backtrace --profile=release-windows cd datafusion-cli - cargo test --lib --tests --bins --all-features --profile windows + cargo test --lib --tests --bins --all-features --profile=release-windows diff --git a/Cargo.toml b/Cargo.toml index 5f8fd3bba9af3..00f70973e2c3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -170,13 +170,13 @@ overflow-checks = false panic = 'unwind' rpath = false -[profile.windows] -codegen-units = 256 -debug = false +[profile.release-windows] +codegen-units = 1024 +debug = 'line-directives-only' debug-assertions = false incremental = true inherits = "release" -lto = true +lto = false opt-level = 1 overflow-checks = false panic = 'unwind'