@@ -50,6 +50,12 @@ fn main() {
50
50
println ! ( "cargo:rerun-if-changed=build.rs" ) ;
51
51
52
52
let target = env:: var ( "TARGET" ) . unwrap ( ) ;
53
+
54
+ // Emscripten's runtime includes all the builtins
55
+ if target. contains ( "emscripten" ) {
56
+ return ;
57
+ }
58
+
53
59
let Cfg { ref target_arch, ref target_os, ref target_env, ref target_vendor, .. } =
54
60
Cfg :: new ( & target) . unwrap_or_else ( |e| {
55
61
writeln ! ( io:: stderr( ) , "{}" , e) . ok ( ) ;
@@ -110,7 +116,6 @@ fn main() {
110
116
"addvdi3.c" ,
111
117
"addvsi3.c" ,
112
118
"apple_versioning.c" ,
113
- "clear_cache.c" ,
114
119
"clzdi2.c" ,
115
120
"clzsi2.c" ,
116
121
"cmpdi2.c" ,
@@ -176,12 +181,10 @@ fn main() {
176
181
177
182
if target_os != "ios" {
178
183
sources. extend ( & [ "absvti2.c" ,
179
- "addtf3.c" ,
180
184
"addvti3.c" ,
181
185
"clzti2.c" ,
182
186
"cmpti2.c" ,
183
187
"ctzti2.c" ,
184
- "divtf3.c" ,
185
188
"ffsti2.c" ,
186
189
"fixdfti.c" ,
187
190
"fixsfti.c" ,
@@ -195,16 +198,12 @@ fn main() {
195
198
"floatuntidf.c" ,
196
199
"floatuntisf.c" ,
197
200
"floatuntixf.c" ,
198
- "multf3.c" ,
199
201
"mulvti3.c" ,
200
202
"negti2.c" ,
201
203
"negvti2.c" ,
202
204
"parityti2.c" ,
203
205
"popcountti2.c" ,
204
- "powitf2.c" ,
205
- "subtf3.c" ,
206
206
"subvti3.c" ,
207
- "trampoline_setup.c" ,
208
207
"ucmpti2.c" ] ) ;
209
208
}
210
209
@@ -217,16 +216,12 @@ fn main() {
217
216
"atomic_thread_fence.c" ] ) ;
218
217
}
219
218
220
- if target_os != "windows" && target_os != "none" {
221
- sources. extend ( & [ "emutls.c" ] ) ;
222
- }
223
-
224
219
if target_env == "msvc" {
225
220
if target_arch == "x86_64" {
226
221
sources. extend ( & [ "x86_64/floatdidf.c" , "x86_64/floatdisf.c" , "x86_64/floatdixf.c" ] ) ;
227
222
}
228
223
} else {
229
- if target_os != "freebsd" {
224
+ if target_os != "freebsd" && target_os != "netbsd" {
230
225
sources. extend ( & [ "gcc_personality_v0.c" ] ) ;
231
226
}
232
227
0 commit comments