-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.rs
324 lines (321 loc) · 17.8 KB
/
build.rs
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
extern crate cc;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
cc::Build::new()
.file("vendor/softfloat/source/s_eq128.c")
.file("vendor/softfloat/source/s_le128.c")
.file("vendor/softfloat/source/s_lt128.c")
.file("vendor/softfloat/source/s_shortShiftLeft128.c")
.file("vendor/softfloat/source/s_shortShiftRight128.c")
.file("vendor/softfloat/source/s_shortShiftRightJam64.c")
.file("vendor/softfloat/source/s_shortShiftRightJam64Extra.c")
.file("vendor/softfloat/source/s_shortShiftRightJam128.c")
.file("vendor/softfloat/source/s_shortShiftRightJam128Extra.c")
.file("vendor/softfloat/source/s_shiftRightJam32.c")
.file("vendor/softfloat/source/s_shiftRightJam64.c")
.file("vendor/softfloat/source/s_shiftRightJam64Extra.c")
.file("vendor/softfloat/source/s_shiftRightJam128.c")
.file("vendor/softfloat/source/s_shiftRightJam128Extra.c")
.file("vendor/softfloat/source/s_shiftRightJam256M.c")
.file("vendor/softfloat/source/s_countLeadingZeros8.c")
.file("vendor/softfloat/source/s_countLeadingZeros16.c")
.file("vendor/softfloat/source/s_countLeadingZeros32.c")
.file("vendor/softfloat/source/s_countLeadingZeros64.c")
.file("vendor/softfloat/source/s_add128.c")
.file("vendor/softfloat/source/s_add256M.c")
.file("vendor/softfloat/source/s_sub128.c")
.file("vendor/softfloat/source/s_sub256M.c")
.file("vendor/softfloat/source/s_mul64ByShifted32To128.c")
.file("vendor/softfloat/source/s_mul64To128.c")
.file("vendor/softfloat/source/s_mul128By32.c")
.file("vendor/softfloat/source/s_mul128To256M.c")
.file("vendor/softfloat/source/s_approxRecip_1Ks.c")
.file("vendor/softfloat/source/s_approxRecip32_1.c")
.file("vendor/softfloat/source/s_approxRecipSqrt_1Ks.c")
.file("vendor/softfloat/source/s_approxRecipSqrt32_1.c")
.file("vendor/softfloat/source/RISCV/softfloat_raiseFlags.c")
.file("vendor/softfloat/source/RISCV/s_f16UIToCommonNaN.c")
.file("vendor/softfloat/source/RISCV/s_commonNaNToF16UI.c")
.file("vendor/softfloat/source/RISCV/s_propagateNaNF16UI.c")
.file("vendor/softfloat/source/RISCV/s_f32UIToCommonNaN.c")
.file("vendor/softfloat/source/RISCV/s_commonNaNToF32UI.c")
.file("vendor/softfloat/source/RISCV/s_propagateNaNF32UI.c")
.file("vendor/softfloat/source/RISCV/s_f64UIToCommonNaN.c")
.file("vendor/softfloat/source/RISCV/s_commonNaNToF64UI.c")
.file("vendor/softfloat/source/RISCV/s_propagateNaNF64UI.c")
.file("vendor/softfloat/source/RISCV/extF80M_isSignalingNaN.c")
.file("vendor/softfloat/source/RISCV/s_extF80UIToCommonNaN.c")
.file("vendor/softfloat/source/RISCV/s_commonNaNToExtF80UI.c")
.file("vendor/softfloat/source/RISCV/s_propagateNaNExtF80UI.c")
.file("vendor/softfloat/source/RISCV/f128M_isSignalingNaN.c")
.file("vendor/softfloat/source/RISCV/s_f128UIToCommonNaN.c")
.file("vendor/softfloat/source/RISCV/s_commonNaNToF128UI.c")
.file("vendor/softfloat/source/RISCV/s_propagateNaNF128UI.c")
.file("vendor/softfloat/source/s_roundToUI32.c")
.file("vendor/softfloat/source/s_roundToUI64.c")
.file("vendor/softfloat/source/s_roundToI32.c")
.file("vendor/softfloat/source/s_roundToI64.c")
.file("vendor/softfloat/source/s_normSubnormalF16Sig.c")
.file("vendor/softfloat/source/s_roundPackToF16.c")
.file("vendor/softfloat/source/s_normRoundPackToF16.c")
.file("vendor/softfloat/source/s_addMagsF16.c")
.file("vendor/softfloat/source/s_subMagsF16.c")
.file("vendor/softfloat/source/s_mulAddF16.c")
.file("vendor/softfloat/source/s_normSubnormalF32Sig.c")
.file("vendor/softfloat/source/s_roundPackToF32.c")
.file("vendor/softfloat/source/s_normRoundPackToF32.c")
.file("vendor/softfloat/source/s_addMagsF32.c")
.file("vendor/softfloat/source/s_subMagsF32.c")
.file("vendor/softfloat/source/s_mulAddF32.c")
.file("vendor/softfloat/source/s_normSubnormalF64Sig.c")
.file("vendor/softfloat/source/s_roundPackToF64.c")
.file("vendor/softfloat/source/s_normRoundPackToF64.c")
.file("vendor/softfloat/source/s_addMagsF64.c")
.file("vendor/softfloat/source/s_subMagsF64.c")
.file("vendor/softfloat/source/s_mulAddF64.c")
.file("vendor/softfloat/source/s_normSubnormalExtF80Sig.c")
.file("vendor/softfloat/source/s_roundPackToExtF80.c")
.file("vendor/softfloat/source/s_normRoundPackToExtF80.c")
.file("vendor/softfloat/source/s_addMagsExtF80.c")
.file("vendor/softfloat/source/s_subMagsExtF80.c")
.file("vendor/softfloat/source/s_normSubnormalF128Sig.c")
.file("vendor/softfloat/source/s_roundPackToF128.c")
.file("vendor/softfloat/source/s_normRoundPackToF128.c")
.file("vendor/softfloat/source/s_addMagsF128.c")
.file("vendor/softfloat/source/s_subMagsF128.c")
.file("vendor/softfloat/source/s_mulAddF128.c")
.file("vendor/softfloat/source/softfloat_state.c")
.file("vendor/softfloat/source/ui32_to_f16.c")
.file("vendor/softfloat/source/ui32_to_f32.c")
.file("vendor/softfloat/source/ui32_to_f64.c")
.file("vendor/softfloat/source/ui32_to_extF80.c")
.file("vendor/softfloat/source/ui32_to_extF80M.c")
.file("vendor/softfloat/source/ui32_to_f128.c")
.file("vendor/softfloat/source/ui32_to_f128M.c")
.file("vendor/softfloat/source/ui64_to_f16.c")
.file("vendor/softfloat/source/ui64_to_f32.c")
.file("vendor/softfloat/source/ui64_to_f64.c")
.file("vendor/softfloat/source/ui64_to_extF80.c")
.file("vendor/softfloat/source/ui64_to_extF80M.c")
.file("vendor/softfloat/source/ui64_to_f128.c")
.file("vendor/softfloat/source/ui64_to_f128M.c")
.file("vendor/softfloat/source/i32_to_f16.c")
.file("vendor/softfloat/source/i32_to_f32.c")
.file("vendor/softfloat/source/i32_to_f64.c")
.file("vendor/softfloat/source/i32_to_extF80.c")
.file("vendor/softfloat/source/i32_to_extF80M.c")
.file("vendor/softfloat/source/i32_to_f128.c")
.file("vendor/softfloat/source/i32_to_f128M.c")
.file("vendor/softfloat/source/i64_to_f16.c")
.file("vendor/softfloat/source/i64_to_f32.c")
.file("vendor/softfloat/source/i64_to_f64.c")
.file("vendor/softfloat/source/i64_to_extF80.c")
.file("vendor/softfloat/source/i64_to_extF80M.c")
.file("vendor/softfloat/source/i64_to_f128.c")
.file("vendor/softfloat/source/i64_to_f128M.c")
.file("vendor/softfloat/source/f16_to_ui32.c")
.file("vendor/softfloat/source/f16_to_ui64.c")
.file("vendor/softfloat/source/f16_to_i32.c")
.file("vendor/softfloat/source/f16_to_i64.c")
.file("vendor/softfloat/source/f16_to_ui32_r_minMag.c")
.file("vendor/softfloat/source/f16_to_ui64_r_minMag.c")
.file("vendor/softfloat/source/f16_to_i32_r_minMag.c")
.file("vendor/softfloat/source/f16_to_i64_r_minMag.c")
.file("vendor/softfloat/source/f16_to_f32.c")
.file("vendor/softfloat/source/f16_to_f64.c")
.file("vendor/softfloat/source/f16_to_extF80.c")
.file("vendor/softfloat/source/f16_to_extF80M.c")
.file("vendor/softfloat/source/f16_to_f128.c")
.file("vendor/softfloat/source/f16_to_f128M.c")
.file("vendor/softfloat/source/f16_roundToInt.c")
.file("vendor/softfloat/source/f16_add.c")
.file("vendor/softfloat/source/f16_sub.c")
.file("vendor/softfloat/source/f16_mul.c")
.file("vendor/softfloat/source/f16_mulAdd.c")
.file("vendor/softfloat/source/f16_div.c")
.file("vendor/softfloat/source/f16_rem.c")
.file("vendor/softfloat/source/f16_sqrt.c")
.file("vendor/softfloat/source/f16_eq.c")
.file("vendor/softfloat/source/f16_le.c")
.file("vendor/softfloat/source/f16_lt.c")
.file("vendor/softfloat/source/f16_eq_signaling.c")
.file("vendor/softfloat/source/f16_le_quiet.c")
.file("vendor/softfloat/source/f16_lt_quiet.c")
.file("vendor/softfloat/source/f16_isSignalingNaN.c")
.file("vendor/softfloat/source/f32_to_ui32.c")
.file("vendor/softfloat/source/f32_to_ui64.c")
.file("vendor/softfloat/source/f32_to_i32.c")
.file("vendor/softfloat/source/f32_to_i64.c")
.file("vendor/softfloat/source/f32_to_ui32_r_minMag.c")
.file("vendor/softfloat/source/f32_to_ui64_r_minMag.c")
.file("vendor/softfloat/source/f32_to_i32_r_minMag.c")
.file("vendor/softfloat/source/f32_to_i64_r_minMag.c")
.file("vendor/softfloat/source/f32_to_f16.c")
.file("vendor/softfloat/source/f32_to_f64.c")
.file("vendor/softfloat/source/f32_to_extF80.c")
.file("vendor/softfloat/source/f32_to_extF80M.c")
.file("vendor/softfloat/source/f32_to_f128.c")
.file("vendor/softfloat/source/f32_to_f128M.c")
.file("vendor/softfloat/source/f32_roundToInt.c")
.file("vendor/softfloat/source/f32_add.c")
.file("vendor/softfloat/source/f32_sub.c")
.file("vendor/softfloat/source/f32_mul.c")
.file("vendor/softfloat/source/f32_mulAdd.c")
.file("vendor/softfloat/source/f32_div.c")
.file("vendor/softfloat/source/f32_rem.c")
.file("vendor/softfloat/source/f32_sqrt.c")
.file("vendor/softfloat/source/f32_eq.c")
.file("vendor/softfloat/source/f32_le.c")
.file("vendor/softfloat/source/f32_lt.c")
.file("vendor/softfloat/source/f32_eq_signaling.c")
.file("vendor/softfloat/source/f32_le_quiet.c")
.file("vendor/softfloat/source/f32_lt_quiet.c")
.file("vendor/softfloat/source/f32_isSignalingNaN.c")
.file("vendor/softfloat/source/f64_to_ui32.c")
.file("vendor/softfloat/source/f64_to_ui64.c")
.file("vendor/softfloat/source/f64_to_i32.c")
.file("vendor/softfloat/source/f64_to_i64.c")
.file("vendor/softfloat/source/f64_to_ui32_r_minMag.c")
.file("vendor/softfloat/source/f64_to_ui64_r_minMag.c")
.file("vendor/softfloat/source/f64_to_i32_r_minMag.c")
.file("vendor/softfloat/source/f64_to_i64_r_minMag.c")
.file("vendor/softfloat/source/f64_to_f16.c")
.file("vendor/softfloat/source/f64_to_f32.c")
.file("vendor/softfloat/source/f64_to_extF80.c")
.file("vendor/softfloat/source/f64_to_extF80M.c")
.file("vendor/softfloat/source/f64_to_f128.c")
.file("vendor/softfloat/source/f64_to_f128M.c")
.file("vendor/softfloat/source/f64_roundToInt.c")
.file("vendor/softfloat/source/f64_add.c")
.file("vendor/softfloat/source/f64_sub.c")
.file("vendor/softfloat/source/f64_mul.c")
.file("vendor/softfloat/source/f64_mulAdd.c")
.file("vendor/softfloat/source/f64_div.c")
.file("vendor/softfloat/source/f64_rem.c")
.file("vendor/softfloat/source/f64_sqrt.c")
.file("vendor/softfloat/source/f64_eq.c")
.file("vendor/softfloat/source/f64_le.c")
.file("vendor/softfloat/source/f64_lt.c")
.file("vendor/softfloat/source/f64_eq_signaling.c")
.file("vendor/softfloat/source/f64_le_quiet.c")
.file("vendor/softfloat/source/f64_lt_quiet.c")
.file("vendor/softfloat/source/f64_isSignalingNaN.c")
.file("vendor/softfloat/source/extF80_to_ui32.c")
.file("vendor/softfloat/source/extF80_to_ui64.c")
.file("vendor/softfloat/source/extF80_to_i32.c")
.file("vendor/softfloat/source/extF80_to_i64.c")
.file("vendor/softfloat/source/extF80_to_ui32_r_minMag.c")
.file("vendor/softfloat/source/extF80_to_ui64_r_minMag.c")
.file("vendor/softfloat/source/extF80_to_i32_r_minMag.c")
.file("vendor/softfloat/source/extF80_to_i64_r_minMag.c")
.file("vendor/softfloat/source/extF80_to_f16.c")
.file("vendor/softfloat/source/extF80_to_f32.c")
.file("vendor/softfloat/source/extF80_to_f64.c")
.file("vendor/softfloat/source/extF80_to_f128.c")
.file("vendor/softfloat/source/extF80_roundToInt.c")
.file("vendor/softfloat/source/extF80_add.c")
.file("vendor/softfloat/source/extF80_sub.c")
.file("vendor/softfloat/source/extF80_mul.c")
.file("vendor/softfloat/source/extF80_div.c")
.file("vendor/softfloat/source/extF80_rem.c")
.file("vendor/softfloat/source/extF80_sqrt.c")
.file("vendor/softfloat/source/extF80_eq.c")
.file("vendor/softfloat/source/extF80_le.c")
.file("vendor/softfloat/source/extF80_lt.c")
.file("vendor/softfloat/source/extF80_eq_signaling.c")
.file("vendor/softfloat/source/extF80_le_quiet.c")
.file("vendor/softfloat/source/extF80_lt_quiet.c")
.file("vendor/softfloat/source/extF80_isSignalingNaN.c")
.file("vendor/softfloat/source/extF80M_to_ui32.c")
.file("vendor/softfloat/source/extF80M_to_ui64.c")
.file("vendor/softfloat/source/extF80M_to_i32.c")
.file("vendor/softfloat/source/extF80M_to_i64.c")
.file("vendor/softfloat/source/extF80M_to_ui32_r_minMag.c")
.file("vendor/softfloat/source/extF80M_to_ui64_r_minMag.c")
.file("vendor/softfloat/source/extF80M_to_i32_r_minMag.c")
.file("vendor/softfloat/source/extF80M_to_i64_r_minMag.c")
.file("vendor/softfloat/source/extF80M_to_f16.c")
.file("vendor/softfloat/source/extF80M_to_f32.c")
.file("vendor/softfloat/source/extF80M_to_f64.c")
.file("vendor/softfloat/source/extF80M_to_f128M.c")
.file("vendor/softfloat/source/extF80M_roundToInt.c")
.file("vendor/softfloat/source/extF80M_add.c")
.file("vendor/softfloat/source/extF80M_sub.c")
.file("vendor/softfloat/source/extF80M_mul.c")
.file("vendor/softfloat/source/extF80M_div.c")
.file("vendor/softfloat/source/extF80M_rem.c")
.file("vendor/softfloat/source/extF80M_sqrt.c")
.file("vendor/softfloat/source/extF80M_eq.c")
.file("vendor/softfloat/source/extF80M_le.c")
.file("vendor/softfloat/source/extF80M_lt.c")
.file("vendor/softfloat/source/extF80M_eq_signaling.c")
.file("vendor/softfloat/source/extF80M_le_quiet.c")
.file("vendor/softfloat/source/extF80M_lt_quiet.c")
.file("vendor/softfloat/source/f128_to_ui32.c")
.file("vendor/softfloat/source/f128_to_ui64.c")
.file("vendor/softfloat/source/f128_to_i32.c")
.file("vendor/softfloat/source/f128_to_i64.c")
.file("vendor/softfloat/source/f128_to_ui32_r_minMag.c")
.file("vendor/softfloat/source/f128_to_ui64_r_minMag.c")
.file("vendor/softfloat/source/f128_to_i32_r_minMag.c")
.file("vendor/softfloat/source/f128_to_i64_r_minMag.c")
.file("vendor/softfloat/source/f128_to_f16.c")
.file("vendor/softfloat/source/f128_to_f32.c")
.file("vendor/softfloat/source/f128_to_extF80.c")
.file("vendor/softfloat/source/f128_to_f64.c")
.file("vendor/softfloat/source/f128_roundToInt.c")
.file("vendor/softfloat/source/f128_add.c")
.file("vendor/softfloat/source/f128_sub.c")
.file("vendor/softfloat/source/f128_mul.c")
.file("vendor/softfloat/source/f128_mulAdd.c")
.file("vendor/softfloat/source/f128_div.c")
.file("vendor/softfloat/source/f128_rem.c")
.file("vendor/softfloat/source/f128_sqrt.c")
.file("vendor/softfloat/source/f128_eq.c")
.file("vendor/softfloat/source/f128_le.c")
.file("vendor/softfloat/source/f128_lt.c")
.file("vendor/softfloat/source/f128_eq_signaling.c")
.file("vendor/softfloat/source/f128_le_quiet.c")
.file("vendor/softfloat/source/f128_lt_quiet.c")
.file("vendor/softfloat/source/f128_isSignalingNaN.c")
.file("vendor/softfloat/source/f128M_to_ui32.c")
.file("vendor/softfloat/source/f128M_to_ui64.c")
.file("vendor/softfloat/source/f128M_to_i32.c")
.file("vendor/softfloat/source/f128M_to_i64.c")
.file("vendor/softfloat/source/f128M_to_ui32_r_minMag.c")
.file("vendor/softfloat/source/f128M_to_ui64_r_minMag.c")
.file("vendor/softfloat/source/f128M_to_i32_r_minMag.c")
.file("vendor/softfloat/source/f128M_to_i64_r_minMag.c")
.file("vendor/softfloat/source/f128M_to_f16.c")
.file("vendor/softfloat/source/f128M_to_f32.c")
.file("vendor/softfloat/source/f128M_to_extF80M.c")
.file("vendor/softfloat/source/f128M_to_f64.c")
.file("vendor/softfloat/source/f128M_roundToInt.c")
.file("vendor/softfloat/source/f128M_add.c")
.file("vendor/softfloat/source/f128M_sub.c")
.file("vendor/softfloat/source/f128M_mul.c")
.file("vendor/softfloat/source/f128M_mulAdd.c")
.file("vendor/softfloat/source/f128M_div.c")
.file("vendor/softfloat/source/f128M_rem.c")
.file("vendor/softfloat/source/f128M_sqrt.c")
.file("vendor/softfloat/source/f128M_eq.c")
.file("vendor/softfloat/source/f128M_le.c")
.file("vendor/softfloat/source/f128M_lt.c")
.file("vendor/softfloat/source/f128M_eq_signaling.c")
.file("vendor/softfloat/source/f128M_le_quiet.c")
.file("vendor/softfloat/source/f128M_lt_quiet.c")
.include("vendor/softfloat/build/Linux-x86_64-GCC")
.include("vendor/softfloat/source/RISCV")
.include("vendor/softfloat/source/include")
.define("SOFTFLOAT_FAST_INT64", None)
.define("SOFTFLOAT_ROUND_ODD", None)
.define("INLINE_LEVEL", "5")
.define("SOFTFLOAT_FAST_DIV32TO16", None)
.define("SOFTFLOAT_FAST_DIV64TO32", None)
.flag("-O2")
.flag("-Wno-unused-parameter")
.flag("-Wno-unused-variable")
.flag("-Wno-implicit-fallthrough")
.flag("-Wno-sign-compare")
.compile("softfloat")
}