Skip to content

Commit 49207fc

Browse files
authored
Merge pull request #6977 from sundy-li/overflow-checks
chore(query): only enable overflow-checks in profile.test
2 parents ae91f64 + 3cd0583 commit 49207fc

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Cargo.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ exclude = ["tools/fuzz"]
5858
[profile.release]
5959
debug = 1
6060
lto = "thin"
61-
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
61+
overflow-checks = false
62+
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
6263

6364
[profile.release.package]
6465
arrow2 = { codegen-units = 4 }
@@ -67,9 +68,21 @@ databend-query = { codegen-units = 4 }
6768

6869
[profile.bench]
6970
debug = true
71+
overflow-checks = false
7072

7173
[profile.dev]
7274
split-debuginfo = "unpacked"
75+
overflow-checks = false
76+
77+
[profile.test]
78+
opt-level = 0
79+
debug = 0
80+
codegen-units = 16
81+
lto = false
82+
incremental = true
83+
debug-assertions = true
84+
overflow-checks = true
85+
rpath = false
7386

7487
[profile.dev.package]
7588
addr2line = { opt-level = 3 }

0 commit comments

Comments
 (0)