-
Notifications
You must be signed in to change notification settings - Fork 127
/
platforms.rs
2314 lines (2116 loc) · 67.9 KB
/
platforms.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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//! The list of targets.
// Note: this file is auto-generated. Do not edit it manually!
// If you need to referesh it, re-run the generator included in the source tree.
// Comments on targets are sourced from
// https://doc.rust-lang.org/nightly/rustc/platform-support.html
// and some of the more obscure targets do not have a comment on them
#![allow(missing_docs)]
use crate::{
platform::{Platform, Tier},
target::{Arch, Endian, Env, PointerWidth, OS},
};
/// The list of all targets recognized by the Rust compiler
pub(crate) const ALL: &[Platform] = &[
AARCH64_APPLE_DARWIN,
AARCH64_APPLE_IOS,
AARCH64_APPLE_IOS_MACABI,
AARCH64_APPLE_IOS_SIM,
AARCH64_APPLE_TVOS,
AARCH64_APPLE_WATCHOS_SIM,
AARCH64_FUCHSIA,
AARCH64_KMC_SOLID_ASP3,
AARCH64_LINUX_ANDROID,
AARCH64_NINTENDO_SWITCH_FREESTANDING,
AARCH64_PC_WINDOWS_GNULLVM,
AARCH64_PC_WINDOWS_MSVC,
AARCH64_UNKNOWN_FREEBSD,
AARCH64_UNKNOWN_HERMIT,
AARCH64_UNKNOWN_LINUX_GNU,
AARCH64_UNKNOWN_LINUX_GNU_ILP32,
AARCH64_UNKNOWN_LINUX_MUSL,
AARCH64_UNKNOWN_NETBSD,
AARCH64_UNKNOWN_NONE,
AARCH64_UNKNOWN_NONE_SOFTFLOAT,
AARCH64_UNKNOWN_OPENBSD,
AARCH64_UNKNOWN_REDOX,
AARCH64_UNKNOWN_UEFI,
AARCH64_UWP_WINDOWS_MSVC,
AARCH64_WRS_VXWORKS,
AARCH64_BE_UNKNOWN_LINUX_GNU,
AARCH64_BE_UNKNOWN_LINUX_GNU_ILP32,
ARM_LINUX_ANDROIDEABI,
ARM_UNKNOWN_LINUX_GNUEABI,
ARM_UNKNOWN_LINUX_GNUEABIHF,
ARM_UNKNOWN_LINUX_MUSLEABI,
ARM_UNKNOWN_LINUX_MUSLEABIHF,
ARM64_32_APPLE_WATCHOS,
ARMEB_UNKNOWN_LINUX_GNUEABI,
ARMEBV7R_NONE_EABI,
ARMEBV7R_NONE_EABIHF,
ARMV4T_NONE_EABI,
ARMV4T_UNKNOWN_LINUX_GNUEABI,
ARMV5TE_NONE_EABI,
ARMV5TE_UNKNOWN_LINUX_GNUEABI,
ARMV5TE_UNKNOWN_LINUX_MUSLEABI,
ARMV5TE_UNKNOWN_LINUX_UCLIBCEABI,
ARMV6_UNKNOWN_FREEBSD,
ARMV6_UNKNOWN_NETBSD_EABIHF,
ARMV6K_NINTENDO_3DS,
ARMV7_APPLE_IOS,
ARMV7_LINUX_ANDROIDEABI,
ARMV7_UNKNOWN_FREEBSD,
ARMV7_UNKNOWN_LINUX_GNUEABI,
ARMV7_UNKNOWN_LINUX_GNUEABIHF,
ARMV7_UNKNOWN_LINUX_MUSLEABI,
ARMV7_UNKNOWN_LINUX_MUSLEABIHF,
ARMV7_UNKNOWN_LINUX_UCLIBCEABI,
ARMV7_UNKNOWN_LINUX_UCLIBCEABIHF,
ARMV7_UNKNOWN_NETBSD_EABIHF,
ARMV7_WRS_VXWORKS_EABIHF,
ARMV7A_KMC_SOLID_ASP3_EABI,
ARMV7A_KMC_SOLID_ASP3_EABIHF,
ARMV7A_NONE_EABI,
ARMV7A_NONE_EABIHF,
ARMV7K_APPLE_WATCHOS,
ARMV7R_NONE_EABI,
ARMV7R_NONE_EABIHF,
ARMV7S_APPLE_IOS,
ASMJS_UNKNOWN_EMSCRIPTEN,
AVR_UNKNOWN_GNU_ATMEGA328,
BPFEB_UNKNOWN_NONE,
BPFEL_UNKNOWN_NONE,
HEXAGON_UNKNOWN_LINUX_MUSL,
I386_APPLE_IOS,
I586_PC_WINDOWS_MSVC,
I586_UNKNOWN_LINUX_GNU,
I586_UNKNOWN_LINUX_MUSL,
I686_APPLE_DARWIN,
I686_LINUX_ANDROID,
I686_PC_WINDOWS_GNU,
I686_PC_WINDOWS_MSVC,
I686_UNKNOWN_FREEBSD,
I686_UNKNOWN_HAIKU,
I686_UNKNOWN_LINUX_GNU,
I686_UNKNOWN_LINUX_MUSL,
I686_UNKNOWN_NETBSD,
I686_UNKNOWN_OPENBSD,
I686_UNKNOWN_UEFI,
I686_UWP_WINDOWS_GNU,
I686_UWP_WINDOWS_MSVC,
I686_WRS_VXWORKS,
M68K_UNKNOWN_LINUX_GNU,
MIPS_UNKNOWN_LINUX_GNU,
MIPS_UNKNOWN_LINUX_MUSL,
MIPS_UNKNOWN_LINUX_UCLIBC,
MIPS64_OPENWRT_LINUX_MUSL,
MIPS64_UNKNOWN_LINUX_GNUABI64,
MIPS64_UNKNOWN_LINUX_MUSLABI64,
MIPS64EL_UNKNOWN_LINUX_GNUABI64,
MIPS64EL_UNKNOWN_LINUX_MUSLABI64,
MIPSEL_SONY_PSP,
MIPSEL_SONY_PSX,
MIPSEL_UNKNOWN_LINUX_GNU,
MIPSEL_UNKNOWN_LINUX_MUSL,
MIPSEL_UNKNOWN_LINUX_UCLIBC,
MIPSEL_UNKNOWN_NONE,
MIPSISA32R6_UNKNOWN_LINUX_GNU,
MIPSISA32R6EL_UNKNOWN_LINUX_GNU,
MIPSISA64R6_UNKNOWN_LINUX_GNUABI64,
MIPSISA64R6EL_UNKNOWN_LINUX_GNUABI64,
MSP430_NONE_ELF,
NVPTX64_NVIDIA_CUDA,
POWERPC_UNKNOWN_FREEBSD,
POWERPC_UNKNOWN_LINUX_GNU,
POWERPC_UNKNOWN_LINUX_GNUSPE,
POWERPC_UNKNOWN_LINUX_MUSL,
POWERPC_UNKNOWN_NETBSD,
POWERPC_UNKNOWN_OPENBSD,
POWERPC_WRS_VXWORKS,
POWERPC_WRS_VXWORKS_SPE,
POWERPC64_UNKNOWN_FREEBSD,
POWERPC64_UNKNOWN_LINUX_GNU,
POWERPC64_UNKNOWN_LINUX_MUSL,
POWERPC64_UNKNOWN_OPENBSD,
POWERPC64_WRS_VXWORKS,
POWERPC64LE_UNKNOWN_FREEBSD,
POWERPC64LE_UNKNOWN_LINUX_GNU,
POWERPC64LE_UNKNOWN_LINUX_MUSL,
RISCV32GC_UNKNOWN_LINUX_GNU,
RISCV32GC_UNKNOWN_LINUX_MUSL,
RISCV32I_UNKNOWN_NONE_ELF,
RISCV32IM_UNKNOWN_NONE_ELF,
RISCV32IMAC_UNKNOWN_NONE_ELF,
RISCV32IMAC_UNKNOWN_XOUS_ELF,
RISCV32IMC_ESP_ESPIDF,
RISCV32IMC_UNKNOWN_NONE_ELF,
RISCV64GC_UNKNOWN_FREEBSD,
RISCV64GC_UNKNOWN_LINUX_GNU,
RISCV64GC_UNKNOWN_LINUX_MUSL,
RISCV64GC_UNKNOWN_NONE_ELF,
RISCV64GC_UNKNOWN_OPENBSD,
RISCV64IMAC_UNKNOWN_NONE_ELF,
S390X_UNKNOWN_LINUX_GNU,
S390X_UNKNOWN_LINUX_MUSL,
SPARC_UNKNOWN_LINUX_GNU,
SPARC64_UNKNOWN_LINUX_GNU,
SPARC64_UNKNOWN_NETBSD,
SPARC64_UNKNOWN_OPENBSD,
SPARCV9_SUN_SOLARIS,
THUMBV4T_NONE_EABI,
THUMBV5TE_NONE_EABI,
THUMBV6M_NONE_EABI,
THUMBV7A_PC_WINDOWS_MSVC,
THUMBV7A_UWP_WINDOWS_MSVC,
THUMBV7EM_NONE_EABI,
THUMBV7EM_NONE_EABIHF,
THUMBV7M_NONE_EABI,
THUMBV7NEON_LINUX_ANDROIDEABI,
THUMBV7NEON_UNKNOWN_LINUX_GNUEABIHF,
THUMBV7NEON_UNKNOWN_LINUX_MUSLEABIHF,
THUMBV8M_BASE_NONE_EABI,
THUMBV8M_MAIN_NONE_EABI,
THUMBV8M_MAIN_NONE_EABIHF,
WASM32_UNKNOWN_EMSCRIPTEN,
WASM32_UNKNOWN_UNKNOWN,
WASM32_WASI,
WASM64_UNKNOWN_UNKNOWN,
X86_64_APPLE_DARWIN,
X86_64_APPLE_IOS,
X86_64_APPLE_IOS_MACABI,
X86_64_APPLE_TVOS,
X86_64_APPLE_WATCHOS_SIM,
X86_64_FORTANIX_UNKNOWN_SGX,
X86_64_FUCHSIA,
X86_64_LINUX_ANDROID,
X86_64_PC_SOLARIS,
X86_64_PC_WINDOWS_GNU,
X86_64_PC_WINDOWS_GNULLVM,
X86_64_PC_WINDOWS_MSVC,
X86_64_SUN_SOLARIS,
X86_64_UNKNOWN_DRAGONFLY,
X86_64_UNKNOWN_FREEBSD,
X86_64_UNKNOWN_HAIKU,
X86_64_UNKNOWN_HERMIT,
X86_64_UNKNOWN_ILLUMOS,
X86_64_UNKNOWN_L4RE_UCLIBC,
X86_64_UNKNOWN_LINUX_GNU,
X86_64_UNKNOWN_LINUX_GNUX32,
X86_64_UNKNOWN_LINUX_MUSL,
X86_64_UNKNOWN_NETBSD,
X86_64_UNKNOWN_NONE,
X86_64_UNKNOWN_NONE_LINUXKERNEL,
X86_64_UNKNOWN_OPENBSD,
X86_64_UNKNOWN_REDOX,
X86_64_UNKNOWN_UEFI,
X86_64_UWP_WINDOWS_GNU,
X86_64_UWP_WINDOWS_MSVC,
X86_64_WRS_VXWORKS,
];
/// ARM64 macOS (11.0+, Big Sur+)
pub(crate) const AARCH64_APPLE_DARWIN: Platform = Platform {
target_triple: "aarch64-apple-darwin",
target_arch: Arch::AArch64,
target_os: OS::MacOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
/// ARM64 iOS
pub(crate) const AARCH64_APPLE_IOS: Platform = Platform {
target_triple: "aarch64-apple-ios",
target_arch: Arch::AArch64,
target_os: OS::iOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
/// Apple Catalyst on ARM64
pub(crate) const AARCH64_APPLE_IOS_MACABI: Platform = Platform {
target_triple: "aarch64-apple-ios-macabi",
target_arch: Arch::AArch64,
target_os: OS::iOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// Apple iOS Simulator on ARM64
pub(crate) const AARCH64_APPLE_IOS_SIM: Platform = Platform {
target_triple: "aarch64-apple-ios-sim",
target_arch: Arch::AArch64,
target_os: OS::iOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
/// ARM64 tvOS
pub(crate) const AARCH64_APPLE_TVOS: Platform = Platform {
target_triple: "aarch64-apple-tvos",
target_arch: Arch::AArch64,
target_os: OS::TvOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 Apple WatchOS Simulator
pub(crate) const AARCH64_APPLE_WATCHOS_SIM: Platform = Platform {
target_triple: "aarch64-apple-watchos-sim",
target_arch: Arch::AArch64,
target_os: OS::WatchOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 Fuchsia
pub(crate) const AARCH64_FUCHSIA: Platform = Platform {
target_triple: "aarch64-fuchsia",
target_arch: Arch::AArch64,
target_os: OS::Fuchsia,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
/// ARM64 SOLID with TOPPERS/ASP3
pub(crate) const AARCH64_KMC_SOLID_ASP3: Platform = Platform {
target_triple: "aarch64-kmc-solid_asp3",
target_arch: Arch::AArch64,
target_os: OS::SolidAsp3,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 Android
pub(crate) const AARCH64_LINUX_ANDROID: Platform = Platform {
target_triple: "aarch64-linux-android",
target_arch: Arch::AArch64,
target_os: OS::Android,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
/// ARM64 Nintendo Switch, Horizon
pub(crate) const AARCH64_NINTENDO_SWITCH_FREESTANDING: Platform = Platform {
target_triple: "aarch64-nintendo-switch-freestanding",
target_arch: Arch::AArch64,
target_os: OS::Horizon,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
pub(crate) const AARCH64_PC_WINDOWS_GNULLVM: Platform = Platform {
target_triple: "aarch64-pc-windows-gnullvm",
target_arch: Arch::AArch64,
target_os: OS::Windows,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 Windows MSVC
pub(crate) const AARCH64_PC_WINDOWS_MSVC: Platform = Platform {
target_triple: "aarch64-pc-windows-msvc",
target_arch: Arch::AArch64,
target_os: OS::Windows,
target_env: Env::Msvc,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
/// ARM64 FreeBSD
pub(crate) const AARCH64_UNKNOWN_FREEBSD: Platform = Platform {
target_triple: "aarch64-unknown-freebsd",
target_arch: Arch::AArch64,
target_os: OS::FreeBSD,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 HermitCore
pub(crate) const AARCH64_UNKNOWN_HERMIT: Platform = Platform {
target_triple: "aarch64-unknown-hermit",
target_arch: Arch::AArch64,
target_os: OS::Hermit,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 Linux (kernel 4.1, glibc 2.17+) [^missing-stack-probes]
pub(crate) const AARCH64_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "aarch64-unknown-linux-gnu",
target_arch: Arch::AArch64,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::One,
};
/// ARM64 Linux (ILP32 ABI)
pub(crate) const AARCH64_UNKNOWN_LINUX_GNU_ILP32: Platform = Platform {
target_triple: "aarch64-unknown-linux-gnu_ilp32",
target_arch: Arch::AArch64,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARM64 Linux with MUSL
pub(crate) const AARCH64_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "aarch64-unknown-linux-musl",
target_arch: Arch::AArch64,
target_os: OS::Linux,
target_env: Env::Musl,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
pub(crate) const AARCH64_UNKNOWN_NETBSD: Platform = Platform {
target_triple: "aarch64-unknown-netbsd",
target_arch: Arch::AArch64,
target_os: OS::NetBSD,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// Bare ARM64, hardfloat
pub(crate) const AARCH64_UNKNOWN_NONE: Platform = Platform {
target_triple: "aarch64-unknown-none",
target_arch: Arch::AArch64,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
/// Bare ARM64, softfloat
pub(crate) const AARCH64_UNKNOWN_NONE_SOFTFLOAT: Platform = Platform {
target_triple: "aarch64-unknown-none-softfloat",
target_arch: Arch::AArch64,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Two,
};
/// ARM64 OpenBSD
pub(crate) const AARCH64_UNKNOWN_OPENBSD: Platform = Platform {
target_triple: "aarch64-unknown-openbsd",
target_arch: Arch::AArch64,
target_os: OS::OpenBSD,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 Redox OS
pub(crate) const AARCH64_UNKNOWN_REDOX: Platform = Platform {
target_triple: "aarch64-unknown-redox",
target_arch: Arch::AArch64,
target_os: OS::Redox,
target_env: Env::Relibc,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 UEFI
pub(crate) const AARCH64_UNKNOWN_UEFI: Platform = Platform {
target_triple: "aarch64-unknown-uefi",
target_arch: Arch::AArch64,
target_os: OS::Uefi,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
pub(crate) const AARCH64_UWP_WINDOWS_MSVC: Platform = Platform {
target_triple: "aarch64-uwp-windows-msvc",
target_arch: Arch::AArch64,
target_os: OS::Windows,
target_env: Env::Msvc,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
pub(crate) const AARCH64_WRS_VXWORKS: Platform = Platform {
target_triple: "aarch64-wrs-vxworks",
target_arch: Arch::AArch64,
target_os: OS::VxWorks,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 Linux (big-endian)
pub(crate) const AARCH64_BE_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "aarch64_be-unknown-linux-gnu",
target_arch: Arch::AArch64,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Big,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// ARM64 Linux (big-endian, ILP32 ABI)
pub(crate) const AARCH64_BE_UNKNOWN_LINUX_GNU_ILP32: Platform = Platform {
target_triple: "aarch64_be-unknown-linux-gnu_ilp32",
target_arch: Arch::AArch64,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Big,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv7 Android
pub(crate) const ARM_LINUX_ANDROIDEABI: Platform = Platform {
target_triple: "arm-linux-androideabi",
target_arch: Arch::Arm,
target_os: OS::Android,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv6 Linux (kernel 3.2, glibc 2.17)
pub(crate) const ARM_UNKNOWN_LINUX_GNUEABI: Platform = Platform {
target_triple: "arm-unknown-linux-gnueabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv6 Linux, hardfloat (kernel 3.2, glibc 2.17)
pub(crate) const ARM_UNKNOWN_LINUX_GNUEABIHF: Platform = Platform {
target_triple: "arm-unknown-linux-gnueabihf",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv6 Linux with MUSL
pub(crate) const ARM_UNKNOWN_LINUX_MUSLEABI: Platform = Platform {
target_triple: "arm-unknown-linux-musleabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Musl,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv6 Linux with MUSL, hardfloat
pub(crate) const ARM_UNKNOWN_LINUX_MUSLEABIHF: Platform = Platform {
target_triple: "arm-unknown-linux-musleabihf",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Musl,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARM Apple WatchOS 64-bit with 32-bit pointers
pub(crate) const ARM64_32_APPLE_WATCHOS: Platform = Platform {
target_triple: "arm64_32-apple-watchos",
target_arch: Arch::AArch64,
target_os: OS::WatchOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARM BE8 the default ARM big-endian architecture since [ARMv6](https://developer.arm.com/documentation/101754/0616/armlink-Reference/armlink-Command-line-Options/--be8?lang=en).
pub(crate) const ARMEB_UNKNOWN_LINUX_GNUEABI: Platform = Platform {
target_triple: "armeb-unknown-linux-gnueabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Big,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// Bare ARMv7-R, Big Endian
pub(crate) const ARMEBV7R_NONE_EABI: Platform = Platform {
target_triple: "armebv7r-none-eabi",
target_arch: Arch::Arm,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Big,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// Bare ARMv7-R, Big Endian, hardfloat
pub(crate) const ARMEBV7R_NONE_EABIHF: Platform = Platform {
target_triple: "armebv7r-none-eabihf",
target_arch: Arch::Arm,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Big,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv4T A32
pub(crate) const ARMV4T_NONE_EABI: Platform = Platform {
target_triple: "armv4t-none-eabi",
target_arch: Arch::Arm,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
pub(crate) const ARMV4T_UNKNOWN_LINUX_GNUEABI: Platform = Platform {
target_triple: "armv4t-unknown-linux-gnueabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv5TE A32
pub(crate) const ARMV5TE_NONE_EABI: Platform = Platform {
target_triple: "armv5te-none-eabi",
target_arch: Arch::Arm,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv5TE Linux (kernel 4.4, glibc 2.23)
pub(crate) const ARMV5TE_UNKNOWN_LINUX_GNUEABI: Platform = Platform {
target_triple: "armv5te-unknown-linux-gnueabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv5TE Linux with MUSL
pub(crate) const ARMV5TE_UNKNOWN_LINUX_MUSLEABI: Platform = Platform {
target_triple: "armv5te-unknown-linux-musleabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Musl,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv5TE Linux with uClibc
pub(crate) const ARMV5TE_UNKNOWN_LINUX_UCLIBCEABI: Platform = Platform {
target_triple: "armv5te-unknown-linux-uclibceabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::UClibc,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv6 FreeBSD
pub(crate) const ARMV6_UNKNOWN_FREEBSD: Platform = Platform {
target_triple: "armv6-unknown-freebsd",
target_arch: Arch::Arm,
target_os: OS::FreeBSD,
target_env: Env::Gnueabihf,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
pub(crate) const ARMV6_UNKNOWN_NETBSD_EABIHF: Platform = Platform {
target_triple: "armv6-unknown-netbsd-eabihf",
target_arch: Arch::Arm,
target_os: OS::NetBSD,
target_env: Env::Eabihf,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv6K Nintendo 3DS, Horizon (Requires devkitARM toolchain)
pub(crate) const ARMV6K_NINTENDO_3DS: Platform = Platform {
target_triple: "armv6k-nintendo-3ds",
target_arch: Arch::Arm,
target_os: OS::Horizon,
target_env: Env::Newlib,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv7 iOS, Cortex-a8
pub(crate) const ARMV7_APPLE_IOS: Platform = Platform {
target_triple: "armv7-apple-ios",
target_arch: Arch::Arm,
target_os: OS::iOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv7a Android
pub(crate) const ARMV7_LINUX_ANDROIDEABI: Platform = Platform {
target_triple: "armv7-linux-androideabi",
target_arch: Arch::Arm,
target_os: OS::Android,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv7 FreeBSD
pub(crate) const ARMV7_UNKNOWN_FREEBSD: Platform = Platform {
target_triple: "armv7-unknown-freebsd",
target_arch: Arch::Arm,
target_os: OS::FreeBSD,
target_env: Env::Gnueabihf,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv7 Linux (kernel 4.15, glibc 2.27)
pub(crate) const ARMV7_UNKNOWN_LINUX_GNUEABI: Platform = Platform {
target_triple: "armv7-unknown-linux-gnueabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv7 Linux, hardfloat (kernel 3.2, glibc 2.17)
pub(crate) const ARMV7_UNKNOWN_LINUX_GNUEABIHF: Platform = Platform {
target_triple: "armv7-unknown-linux-gnueabihf",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv7 Linux with MUSL
pub(crate) const ARMV7_UNKNOWN_LINUX_MUSLEABI: Platform = Platform {
target_triple: "armv7-unknown-linux-musleabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Musl,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv7 Linux with MUSL, hardfloat
pub(crate) const ARMV7_UNKNOWN_LINUX_MUSLEABIHF: Platform = Platform {
target_triple: "armv7-unknown-linux-musleabihf",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::Musl,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARMv7 Linux with uClibc, softfloat
pub(crate) const ARMV7_UNKNOWN_LINUX_UCLIBCEABI: Platform = Platform {
target_triple: "armv7-unknown-linux-uclibceabi",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::UClibc,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARMv7 Linux with uClibc, hardfloat
pub(crate) const ARMV7_UNKNOWN_LINUX_UCLIBCEABIHF: Platform = Platform {
target_triple: "armv7-unknown-linux-uclibceabihf",
target_arch: Arch::Arm,
target_os: OS::Linux,
target_env: Env::UClibc,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
pub(crate) const ARMV7_UNKNOWN_NETBSD_EABIHF: Platform = Platform {
target_triple: "armv7-unknown-netbsd-eabihf",
target_arch: Arch::Arm,
target_os: OS::NetBSD,
target_env: Env::Eabihf,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
pub(crate) const ARMV7_WRS_VXWORKS_EABIHF: Platform = Platform {
target_triple: "armv7-wrs-vxworks-eabihf",
target_arch: Arch::Arm,
target_os: OS::VxWorks,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARM SOLID with TOPPERS/ASP3
pub(crate) const ARMV7A_KMC_SOLID_ASP3_EABI: Platform = Platform {
target_triple: "armv7a-kmc-solid_asp3-eabi",
target_arch: Arch::Arm,
target_os: OS::SolidAsp3,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARM SOLID with TOPPERS/ASP3, hardfloat
pub(crate) const ARMV7A_KMC_SOLID_ASP3_EABIHF: Platform = Platform {
target_triple: "armv7a-kmc-solid_asp3-eabihf",
target_arch: Arch::Arm,
target_os: OS::SolidAsp3,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// Bare ARMv7-A
pub(crate) const ARMV7A_NONE_EABI: Platform = Platform {
target_triple: "armv7a-none-eabi",
target_arch: Arch::Arm,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// ARM Cortex-A, hardfloat
pub(crate) const ARMV7A_NONE_EABIHF: Platform = Platform {
target_triple: "armv7a-none-eabihf",
target_arch: Arch::Arm,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// ARM Apple WatchOS
pub(crate) const ARMV7K_APPLE_WATCHOS: Platform = Platform {
target_triple: "armv7k-apple-watchos",
target_arch: Arch::Arm,
target_os: OS::WatchOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// Bare ARMv7-R
pub(crate) const ARMV7R_NONE_EABI: Platform = Platform {
target_triple: "armv7r-none-eabi",
target_arch: Arch::Arm,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// Bare ARMv7-R, hardfloat
pub(crate) const ARMV7R_NONE_EABIHF: Platform = Platform {
target_triple: "armv7r-none-eabihf",
target_arch: Arch::Arm,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
pub(crate) const ARMV7S_APPLE_IOS: Platform = Platform {
target_triple: "armv7s-apple-ios",
target_arch: Arch::Arm,
target_os: OS::iOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// asm.js via Emscripten
pub(crate) const ASMJS_UNKNOWN_EMSCRIPTEN: Platform = Platform {
target_triple: "asmjs-unknown-emscripten",
target_arch: Arch::Wasm32,
target_os: OS::Emscripten,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// AVR. Requires `-Z build-std=core`
pub(crate) const AVR_UNKNOWN_GNU_ATMEGA328: Platform = Platform {
target_triple: "avr-unknown-gnu-atmega328",
target_arch: Arch::Avr,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U16,
tier: Tier::Three,
};
/// BPF (big endian)
pub(crate) const BPFEB_UNKNOWN_NONE: Platform = Platform {
target_triple: "bpfeb-unknown-none",
target_arch: Arch::Bpf,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Big,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
/// BPF (little endian)
pub(crate) const BPFEL_UNKNOWN_NONE: Platform = Platform {
target_triple: "bpfel-unknown-none",
target_arch: Arch::Bpf,
target_os: OS::None,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U64,
tier: Tier::Three,
};
pub(crate) const HEXAGON_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "hexagon-unknown-linux-musl",
target_arch: Arch::Hexagon,
target_os: OS::Linux,
target_env: Env::Musl,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// 32-bit x86 iOS
pub(crate) const I386_APPLE_IOS: Platform = Platform {
target_triple: "i386-apple-ios",
target_arch: Arch::X86,
target_os: OS::iOS,
target_env: Env::None,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Three,
};
/// 32-bit Windows w/o SSE
pub(crate) const I586_PC_WINDOWS_MSVC: Platform = Platform {
target_triple: "i586-pc-windows-msvc",
target_arch: Arch::X86,
target_os: OS::Windows,
target_env: Env::Msvc,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// 32-bit Linux w/o SSE (kernel 3.2, glibc 2.17)
pub(crate) const I586_UNKNOWN_LINUX_GNU: Platform = Platform {
target_triple: "i586-unknown-linux-gnu",
target_arch: Arch::X86,
target_os: OS::Linux,
target_env: Env::Gnu,
target_endian: Endian::Little,
target_pointer_width: PointerWidth::U32,
tier: Tier::Two,
};
/// 32-bit Linux w/o SSE, MUSL
pub(crate) const I586_UNKNOWN_LINUX_MUSL: Platform = Platform {
target_triple: "i586-unknown-linux-musl",
target_arch: Arch::X86,
target_os: OS::Linux,