@@ -296,15 +296,6 @@ mod c {
296296 ( "__truncdfhf2" , "truncdfhf2.c" ) ,
297297 ( "__truncsfhf2" , "truncsfhf2.c" ) ,
298298 ] ) ;
299-
300- if target_arch == "x86" || target_arch == "x86_64" {
301- // Only add 80-bit long double sources on x86.
302- sources. extend ( & [
303- ( "__divxc3" , "divxc3.c" ) ,
304- ( "__mulxc3" , "mulxc3.c" ) ,
305- ( "__powixf2" , "powixf2.c" ) ,
306- ] ) ;
307- }
308299 }
309300
310301 // When compiling in rustbuild (the rust-lang/rust repo) this library
@@ -356,29 +347,12 @@ mod c {
356347 ] ) ;
357348 }
358349
359- if target_env == "msvc" {
360- if target_arch == "x86_64" {
361- sources. extend ( & [ ( "__floatdixf" , "x86_64/floatdixf.c" ) ] ) ;
362- }
363- } else {
364- // None of these seem to be used on x86_64 windows, and they've all
365- // got the wrong ABI anyway, so we want to avoid them.
366- if target_os != "windows" {
367- if target_arch == "x86_64" {
368- sources. extend ( & [
369- ( "__floatdixf" , "x86_64/floatdixf.c" ) ,
370- ( "__floatundixf" , "x86_64/floatundixf.S" ) ,
371- ] ) ;
372- }
373- }
374-
350+ if target_env != "msvc" {
375351 if target_arch == "x86" {
376352 sources. extend ( & [
377353 ( "__ashldi3" , "i386/ashldi3.S" ) ,
378354 ( "__ashrdi3" , "i386/ashrdi3.S" ) ,
379355 ( "__divdi3" , "i386/divdi3.S" ) ,
380- ( "__floatdixf" , "i386/floatdixf.S" ) ,
381- ( "__floatundixf" , "i386/floatundixf.S" ) ,
382356 ( "__lshrdi3" , "i386/lshrdi3.S" ) ,
383357 ( "__moddi3" , "i386/moddi3.S" ) ,
384358 ( "__muldi3" , "i386/muldi3.S" ) ,
0 commit comments