authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-30 13:17:24+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-14 07:02:14+01:00
log2c192f888269f7ced6c9ee317b00072dbc564100
tree50d545271d16af451e84bb9710923741a1b02071
parent45fff0a511942d410d657be31bdbdf10a45a6a57
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

mingw: Update sources list to dcd7fefc703fb4b12187235386900d34cc13fdc5.


1 files changed, 64 insertions(+), 14 deletions(-)

src/mingw.zig+64-14
......@@ -81,7 +81,7 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
8181 .owner = undefined,
8282 });
8383 }
84 if (target.cpu.arch == .x86 or target.cpu.arch == .x86_64) {
84 if (target.cpu.arch.isX86()) {
8585 for (mingw32_x86_src) |dep| {
8686 try c_source_files.append(.{
8787 .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{
......@@ -103,6 +103,15 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
103103 }
104104 }
105105 } else if (target.cpu.arch.isThumb()) {
106 for (mingw32_arm_src) |dep| {
107 try c_source_files.append(.{
108 .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{
109 "libc", "mingw", dep,
110 }),
111 .extra_flags = args.items,
112 .owner = undefined,
113 });
114 }
106115 for (mingw32_arm32_src) |dep| {
107116 try c_source_files.append(.{
108117 .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{
......@@ -113,6 +122,15 @@ pub fn buildCrtFile(comp: *Compilation, crt_file: CrtFile, prog_node: std.Progre
113122 });
114123 }
115124 } else if (target.cpu.arch.isAARCH64()) {
125 for (mingw32_arm_src) |dep| {
126 try c_source_files.append(.{
127 .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{
128 "libc", "mingw", dep,
129 }),
130 .extra_flags = args.items,
131 .owner = undefined,
132 });
133 }
116134 for (mingw32_arm64_src) |dep| {
117135 try c_source_files.append(.{
118136 .src_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{
......@@ -488,8 +506,6 @@ const mingw32_generic_src = [_][]const u8{
488506 "complex" ++ path.sep_str ++ "ctan.c",
489507 "complex" ++ path.sep_str ++ "ctanf.c",
490508 "complex" ++ path.sep_str ++ "ctanl.c",
491 "crt" ++ path.sep_str ++ "dllentry.c",
492 "crt" ++ path.sep_str ++ "dllmain.c",
493509 "gdtoa" ++ path.sep_str ++ "arithchk.c",
494510 "gdtoa" ++ path.sep_str ++ "dmisc.c",
495511 "gdtoa" ++ path.sep_str ++ "dtoa.c",
......@@ -531,8 +547,6 @@ const mingw32_generic_src = [_][]const u8{
531547 "math" ++ path.sep_str ++ "lgammaf.c",
532548 "math" ++ path.sep_str ++ "lgammal.c",
533549 "math" ++ path.sep_str ++ "modfl.c",
534 "math" ++ path.sep_str ++ "nextafterl.c",
535 "math" ++ path.sep_str ++ "nexttoward.c",
536550 "math" ++ path.sep_str ++ "powi.c",
537551 "math" ++ path.sep_str ++ "powif.c",
538552 "math" ++ path.sep_str ++ "powil.c",
......@@ -550,6 +564,8 @@ const mingw32_generic_src = [_][]const u8{
550564 "misc" ++ path.sep_str ++ "delayimp.c",
551565 "misc" ++ path.sep_str ++ "dirent.c",
552566 "misc" ++ path.sep_str ++ "dirname.c",
567 "misc" ++ path.sep_str ++ "dllentrypoint.c",
568 "misc" ++ path.sep_str ++ "dllmain.c",
553569 "misc" ++ path.sep_str ++ "feclearexcept.c",
554570 "misc" ++ path.sep_str ++ "fegetenv.c",
555571 "misc" ++ path.sep_str ++ "fegetexceptflag.c",
......@@ -611,9 +627,7 @@ const mingw32_generic_src = [_][]const u8{
611627 "stdio" ++ path.sep_str ++ "_Exit.c",
612628 "stdio" ++ path.sep_str ++ "_findfirst64i32.c",
613629 "stdio" ++ path.sep_str ++ "_findnext64i32.c",
614 "stdio" ++ path.sep_str ++ "_fstat.c",
615630 "stdio" ++ path.sep_str ++ "_fstat64i32.c",
616 "stdio" ++ path.sep_str ++ "_ftime.c",
617631 "stdio" ++ path.sep_str ++ "_stat.c",
618632 "stdio" ++ path.sep_str ++ "_stat64i32.c",
619633 "stdio" ++ path.sep_str ++ "_wfindfirst64i32.c",
......@@ -621,11 +635,9 @@ const mingw32_generic_src = [_][]const u8{
621635 "stdio" ++ path.sep_str ++ "_wstat.c",
622636 "stdio" ++ path.sep_str ++ "_wstat64i32.c",
623637 "stdio" ++ path.sep_str ++ "asprintf.c",
624 "stdio" ++ path.sep_str ++ "fgetpos64.c",
625638 "stdio" ++ path.sep_str ++ "fopen64.c",
626639 "stdio" ++ path.sep_str ++ "fseeko32.c",
627640 "stdio" ++ path.sep_str ++ "fseeko64.c",
628 "stdio" ++ path.sep_str ++ "fsetpos64.c",
629641 "stdio" ++ path.sep_str ++ "ftello.c",
630642 "stdio" ++ path.sep_str ++ "ftello64.c",
631643 "stdio" ++ path.sep_str ++ "ftruncate64.c",
......@@ -685,11 +697,24 @@ const mingw32_generic_src = [_][]const u8{
685697 "stdio" ++ path.sep_str ++ "vwscanf.c",
686698 "stdio" ++ path.sep_str ++ "vwscanf2.S",
687699 "stdio" ++ path.sep_str ++ "wtoll.c",
700 // mingwthrd
701 "libsrc" ++ path.sep_str ++ "mingwthrd_mt.c",
688702 // ucrtbase
689 "crt" ++ path.sep_str ++ "ucrtbase_compat.c",
690703 "math" ++ path.sep_str ++ "_huge.c",
691704 "misc" ++ path.sep_str ++ "__initenv.c",
705 "misc" ++ path.sep_str ++ "__winitenv.c",
706 "misc" ++ path.sep_str ++ "__p___initenv.c",
707 "misc" ++ path.sep_str ++ "__p___winitenv.c",
708 "misc" ++ path.sep_str ++ "_onexit.c",
692709 "misc" ++ path.sep_str ++ "ucrt-access.c",
710 "misc" ++ path.sep_str ++ "ucrt__getmainargs.c",
711 "misc" ++ path.sep_str ++ "ucrt__wgetmainargs.c",
712 "misc" ++ path.sep_str ++ "ucrt_amsg_exit.c",
713 "misc" ++ path.sep_str ++ "ucrt_at_quick_exit.c",
714 "misc" ++ path.sep_str ++ "ucrt_tzset.c",
715 "stdio" ++ path.sep_str ++ "ucrt__scprintf.c",
716 "stdio" ++ path.sep_str ++ "ucrt__snprintf.c",
717 "stdio" ++ path.sep_str ++ "ucrt__snscanf.c",
693718 "stdio" ++ path.sep_str ++ "ucrt__snwprintf.c",
694719 "stdio" ++ path.sep_str ++ "ucrt__vscprintf.c",
695720 "stdio" ++ path.sep_str ++ "ucrt__vsnprintf.c",
......@@ -697,6 +722,7 @@ const mingw32_generic_src = [_][]const u8{
697722 "stdio" ++ path.sep_str ++ "ucrt_fprintf.c",
698723 "stdio" ++ path.sep_str ++ "ucrt_fscanf.c",
699724 "stdio" ++ path.sep_str ++ "ucrt_fwprintf.c",
725 "stdio" ++ path.sep_str ++ "ucrt_ms_fwprintf.c",
700726 "stdio" ++ path.sep_str ++ "ucrt_printf.c",
701727 "stdio" ++ path.sep_str ++ "ucrt_scanf.c",
702728 "stdio" ++ path.sep_str ++ "ucrt_snprintf.c",
......@@ -709,6 +735,20 @@ const mingw32_generic_src = [_][]const u8{
709735 "stdio" ++ path.sep_str ++ "ucrt_vsnprintf.c",
710736 "stdio" ++ path.sep_str ++ "ucrt_vsprintf.c",
711737 "stdio" ++ path.sep_str ++ "ucrt_vsscanf.c",
738 "string" ++ path.sep_str ++ "ucrt__wcstok.c",
739 // winpthreads
740 "winpthreads" ++ path.sep_str ++ "barrier.c",
741 "winpthreads" ++ path.sep_str ++ "clock.c",
742 "winpthreads" ++ path.sep_str ++ "cond.c",
743 "winpthreads" ++ path.sep_str ++ "misc.c",
744 "winpthreads" ++ path.sep_str ++ "mutex.c",
745 "winpthreads" ++ path.sep_str ++ "nanosleep.c",
746 "winpthreads" ++ path.sep_str ++ "ref.c",
747 "winpthreads" ++ path.sep_str ++ "rwlock.c",
748 "winpthreads" ++ path.sep_str ++ "sched.c",
749 "winpthreads" ++ path.sep_str ++ "sem.c",
750 "winpthreads" ++ path.sep_str ++ "spinlock.c",
751 "winpthreads" ++ path.sep_str ++ "thread.c",
712752 // uuid
713753 "libsrc" ++ path.sep_str ++ "ativscp-uuid.c",
714754 "libsrc" ++ path.sep_str ++ "atsmedia-uuid.c",
......@@ -819,11 +859,13 @@ const mingw32_generic_src = [_][]const u8{
819859 "libsrc" ++ path.sep_str ++ "windowscodecs.c",
820860 "libsrc" ++ path.sep_str ++ "dxguid.c",
821861 "libsrc" ++ path.sep_str ++ "ksuser.c",
862 "libsrc" ++ path.sep_str ++ "largeint.c",
822863 "libsrc" ++ path.sep_str ++ "locationapi.c",
823864 "libsrc" ++ path.sep_str ++ "sapi.c",
824865 "libsrc" ++ path.sep_str ++ "sensorsapi.c",
825866 "libsrc" ++ path.sep_str ++ "portabledeviceguids.c",
826867 "libsrc" ++ path.sep_str ++ "taskschd.c",
868 "libsrc" ++ path.sep_str ++ "scrnsave.c",
827869 "libsrc" ++ path.sep_str ++ "strmiids.c",
828870 "libsrc" ++ path.sep_str ++ "gdiplus.c",
829871 "libsrc" ++ path.sep_str ++ "activeds-uuid.c",
......@@ -845,6 +887,7 @@ const mingw32_x86_src = [_][]const u8{
845887 "math" ++ path.sep_str ++ "roundl.c",
846888 "math" ++ path.sep_str ++ "tgammal.c",
847889 "math" ++ path.sep_str ++ "truncl.c",
890 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "_chgsignl.S",
848891 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acoshl.c",
849892 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "acosl.c",
850893 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "asinhl.c",
......@@ -853,7 +896,6 @@ const mingw32_x86_src = [_][]const u8{
853896 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanhl.c",
854897 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "atanl.c",
855898 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "ceill.S",
856 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "_chgsignl.S",
857899 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "copysignl.S",
858900 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl.c",
859901 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "cosl_internal.S",
......@@ -877,18 +919,21 @@ const mingw32_x86_src = [_][]const u8{
877919 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "powl.c",
878920 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "remainderl.S",
879921 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "remquol.S",
922 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "scalbn.S",
880923 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "scalbnf.S",
881924 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "scalbnl.S",
882 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "scalbn.S",
883925 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "sinl.c",
884926 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "sinl_internal.S",
885927 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "tanl.S",
886928 // ucrtbase
887929 "math" ++ path.sep_str ++ "fabsf.c",
930 "math" ++ path.sep_str ++ "nextafterl.c",
931 "math" ++ path.sep_str ++ "nexttoward.c",
888932 "math" ++ path.sep_str ++ "nexttowardf.c",
889933};
890934
891935const mingw32_x86_32_src = [_][]const u8{
936 // ucrtbase
892937 "math" ++ path.sep_str ++ "coshf.c",
893938 "math" ++ path.sep_str ++ "expf.c",
894939 "math" ++ path.sep_str ++ "log10f.c",
......@@ -910,8 +955,13 @@ const mingw32_x86_32_src = [_][]const u8{
910955 "math" ++ path.sep_str ++ "x86" ++ path.sep_str ++ "tanf.c",
911956};
912957
913const mingw32_arm32_src = [_][]const u8{
958const mingw32_arm_src = [_][]const u8{
959 // mingwex
914960 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "ldexpl.c",
961};
962
963const mingw32_arm32_src = [_][]const u8{
964 // mingwex
915965 "math" ++ path.sep_str ++ "arm" ++ path.sep_str ++ "_chgsignl.S",
916966 "math" ++ path.sep_str ++ "arm" ++ path.sep_str ++ "s_rint.c",
917967 "math" ++ path.sep_str ++ "arm" ++ path.sep_str ++ "s_rintf.c",
......@@ -920,7 +970,7 @@ const mingw32_arm32_src = [_][]const u8{
920970};
921971
922972const mingw32_arm64_src = [_][]const u8{
923 "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "ldexpl.c",
973 // mingwex
924974 "math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "_chgsignl.S",
925975 "math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "rint.c",
926976 "math" ++ path.sep_str ++ "arm64" ++ path.sep_str ++ "rintf.c",