-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml
More file actions
180 lines (170 loc) · 5.16 KB
/
config.toml
File metadata and controls
180 lines (170 loc) · 5.16 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[build]
target = "x86_64-unknown-linux-gnu"
#rustc-wrapper = "sccache"
[unstable]
build-std = ["std", "panic_abort"]
#build-std-features = ["immediate_abort"]
#profile-rustflags = true
[target.x86_64-unknown-linux-gnu]
#linker = "gcc"
rustflags = [
"-C", "panic=abort",
#"-C", "panic=immediate-abort",
"-C", "strip=symbols",
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections",
]
[target.x86_64-unknown-linux-musl]
#linker = "gcc"
rustflags = [
"-Ctarget-feature=+crt-static",
"-Clink-self-contained=on",
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections",
]
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
#linker = "gcc"
rustflags = [
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections",
]
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"
#linker = "gcc"
rustflags = [
"-Ctarget-feature=+crt-static",
"-Clink-self-contained=on",
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections",
]
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = [
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-arg=-mcpu=cortex-a9",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections",
]
[target.armv7-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = [
"-Ctarget-feature=+crt-static",
"-Clink-self-contained=on",
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-arg=-mcpu=cortex-a9",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections",
]
[target.x86_64-pc-windows-gnu]
#linker = "clang"
rustflags = [
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie -Wl,--sort-common -Wl,--as-needed",
]
[target.aarch64-pc-windows-gnu]
#linker = "clang"
rustflags = [
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie -Wl,--sort-common -Wl,--as-needed",
]
[target.x86_64-apple-darwin]
#linker = "x86_64-apple-darwin22.4-clang"
#ar = "x86_64-apple-darwin22.4-ar"
rustflags = [
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie",
]
[target.aarch64-apple-darwin]
#linker = "aarch64-apple-darwin22.4-clang"
#ar = "aarch64-apple-darwin22.4-ar"
rustflags = [
"-C", "lto=fat",
"-C", "incremental=y",
"-C", "panic=abort",
"-C", "strip=symbols",
"-C", "no-redzone=y",
"-C", "overflow-checks=n",
"-C", "control-flow-guard=y",
"-C", "embed-bitcode=y",
"-C", "codegen-units=1",
"-C", "opt-level=3",
"-C", "link-args=-Wp,-D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -fpic -fPIE -fpie",
]