-
Notifications
You must be signed in to change notification settings - Fork 599
/
Copy pathconfig.toml
59 lines (53 loc) · 1.78 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# RisingWave cannot compile without SIMD. #7259
#
# For some targets, there's an SIMD feature enabled by default.
# For other targets, we need to enable the feature manually.
# See `rustc --print=cfg --target=<triple>` for details.
[target.x86_64-unknown-linux-gnu]
rustflags = ["-Ctarget-feature=+avx2"]
[target.aarch64-unknown-linux-gnu]
rustflags = ["-Ctarget-feature=+neon"]
# Extra flags for Linux targets.
[target.'cfg(target_os = "linux")']
rustflags = [
"-Clink-arg=-fuse-ld=lld", #2781
"-Clink-arg=-Wl,--no-rosegment", #4574
]
[target.x86_64-apple-darwin]
rustflags = [
"-Ctarget-feature=+sse4.2", # use a generally available feature, since it's not for production
"-Clink-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld",
]
[target.aarch64-apple-darwin]
rustflags = [
# neon is enabled by default
"-Clink-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld",
]
# Flags for all targets.
[target.'cfg(all())']
rustflags = [
"--cfg",
"tokio_unstable",
# uncomment the following two lines to enable `TaskLocalAlloc`
# "--cfg",
# "enable_task_local_alloc",
# lints
# TODO: use lint configuration in cargo https://github.com/rust-lang/cargo/issues/5034
"-Funused_must_use",
"-Aclippy::uninlined_format_args",
"-Wclippy::dbg_macro",
"-Wclippy::disallowed_methods",
"-Wclippy::disallowed_types",
"-Wclippy::doc_markdown",
"-Wclippy::explicit_into_iter_loop",
"-Wclippy::explicit_iter_loop",
"-Wclippy::inconsistent_struct_constructor",
"-Wclippy::unused_async",
"-Wclippy::map_flatten",
"-Wclippy::no_effect_underscore_binding",
"-Wclippy::await_holding_lock",
"-Wrustdoc::broken_intra_doc_links",
"-Wfuture_incompatible",
"-Wnonstandard_style",
"-Wrust_2018_idioms",
]