Lines Matching refs:Distro

23 static Distro::DistroType DetectOsRelease(llvm::vfs::FileSystem &VFS) {  in DetectOsRelease()
29 return Distro::UnknownDistro; in DetectOsRelease()
33 Distro::DistroType Version = Distro::UnknownDistro; in DetectOsRelease()
37 if (Version == Distro::UnknownDistro && Line.starts_with("ID=")) in DetectOsRelease()
38 Version = llvm::StringSwitch<Distro::DistroType>(Line.substr(3)) in DetectOsRelease()
39 .Case("alpine", Distro::AlpineLinux) in DetectOsRelease()
40 .Case("fedora", Distro::Fedora) in DetectOsRelease()
41 .Case("gentoo", Distro::Gentoo) in DetectOsRelease()
42 .Case("arch", Distro::ArchLinux) in DetectOsRelease()
44 .Case("sles", Distro::OpenSUSE) in DetectOsRelease()
45 .Case("opensuse", Distro::OpenSUSE) in DetectOsRelease()
46 .Case("exherbo", Distro::Exherbo) in DetectOsRelease()
47 .Default(Distro::UnknownDistro); in DetectOsRelease()
51 static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) { in DetectLsbRelease()
55 return Distro::UnknownDistro; in DetectLsbRelease()
59 Distro::DistroType Version = Distro::UnknownDistro; in DetectLsbRelease()
62 if (Version == Distro::UnknownDistro && in DetectLsbRelease()
64 Version = llvm::StringSwitch<Distro::DistroType>(Line.substr(17)) in DetectLsbRelease()
65 .Case("hardy", Distro::UbuntuHardy) in DetectLsbRelease()
66 .Case("intrepid", Distro::UbuntuIntrepid) in DetectLsbRelease()
67 .Case("jaunty", Distro::UbuntuJaunty) in DetectLsbRelease()
68 .Case("karmic", Distro::UbuntuKarmic) in DetectLsbRelease()
69 .Case("lucid", Distro::UbuntuLucid) in DetectLsbRelease()
70 .Case("maverick", Distro::UbuntuMaverick) in DetectLsbRelease()
71 .Case("natty", Distro::UbuntuNatty) in DetectLsbRelease()
72 .Case("oneiric", Distro::UbuntuOneiric) in DetectLsbRelease()
73 .Case("precise", Distro::UbuntuPrecise) in DetectLsbRelease()
74 .Case("quantal", Distro::UbuntuQuantal) in DetectLsbRelease()
75 .Case("raring", Distro::UbuntuRaring) in DetectLsbRelease()
76 .Case("saucy", Distro::UbuntuSaucy) in DetectLsbRelease()
77 .Case("trusty", Distro::UbuntuTrusty) in DetectLsbRelease()
78 .Case("utopic", Distro::UbuntuUtopic) in DetectLsbRelease()
79 .Case("vivid", Distro::UbuntuVivid) in DetectLsbRelease()
80 .Case("wily", Distro::UbuntuWily) in DetectLsbRelease()
81 .Case("xenial", Distro::UbuntuXenial) in DetectLsbRelease()
82 .Case("yakkety", Distro::UbuntuYakkety) in DetectLsbRelease()
83 .Case("zesty", Distro::UbuntuZesty) in DetectLsbRelease()
84 .Case("artful", Distro::UbuntuArtful) in DetectLsbRelease()
85 .Case("bionic", Distro::UbuntuBionic) in DetectLsbRelease()
86 .Case("cosmic", Distro::UbuntuCosmic) in DetectLsbRelease()
87 .Case("disco", Distro::UbuntuDisco) in DetectLsbRelease()
88 .Case("eoan", Distro::UbuntuEoan) in DetectLsbRelease()
89 .Case("focal", Distro::UbuntuFocal) in DetectLsbRelease()
90 .Case("groovy", Distro::UbuntuGroovy) in DetectLsbRelease()
91 .Case("hirsute", Distro::UbuntuHirsute) in DetectLsbRelease()
92 .Case("impish", Distro::UbuntuImpish) in DetectLsbRelease()
93 .Case("jammy", Distro::UbuntuJammy) in DetectLsbRelease()
94 .Case("kinetic", Distro::UbuntuKinetic) in DetectLsbRelease()
95 .Case("lunar", Distro::UbuntuLunar) in DetectLsbRelease()
96 .Case("mantic", Distro::UbuntuMantic) in DetectLsbRelease()
97 .Case("noble", Distro::UbuntuNoble) in DetectLsbRelease()
98 .Case("oracular", Distro::UbuntuOracular) in DetectLsbRelease()
99 .Default(Distro::UnknownDistro); in DetectLsbRelease()
103 static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) { in DetectDistro()
104 Distro::DistroType Version = Distro::UnknownDistro; in DetectDistro()
109 if (Version != Distro::UnknownDistro) in DetectDistro()
114 if (Version != Distro::UnknownDistro) in DetectDistro()
124 return Distro::Fedora; in DetectDistro()
128 return Distro::RHEL7; in DetectDistro()
130 return Distro::RHEL6; in DetectDistro()
132 return Distro::RHEL5; in DetectDistro()
134 return Distro::UnknownDistro; in DetectDistro()
146 return Distro::DebianLenny; in DetectDistro()
148 return Distro::DebianSqueeze; in DetectDistro()
150 return Distro::DebianWheezy; in DetectDistro()
152 return Distro::DebianJessie; in DetectDistro()
154 return Distro::DebianStretch; in DetectDistro()
156 return Distro::DebianBuster; in DetectDistro()
158 return Distro::DebianBullseye; in DetectDistro()
160 return Distro::DebianBookworm; in DetectDistro()
162 return Distro::DebianTrixie; in DetectDistro()
164 return Distro::UnknownDistro; in DetectDistro()
167 return llvm::StringSwitch<Distro::DistroType>(Data.split("\n").first) in DetectDistro()
168 .Case("squeeze/sid", Distro::DebianSqueeze) in DetectDistro()
169 .Case("wheezy/sid", Distro::DebianWheezy) in DetectDistro()
170 .Case("jessie/sid", Distro::DebianJessie) in DetectDistro()
171 .Case("stretch/sid", Distro::DebianStretch) in DetectDistro()
172 .Case("buster/sid", Distro::DebianBuster) in DetectDistro()
173 .Case("bullseye/sid", Distro::DebianBullseye) in DetectDistro()
174 .Case("bookworm/sid", Distro::DebianBookworm) in DetectDistro()
175 .Case("trixie/sid", Distro::DebianTrixie) in DetectDistro()
176 .Default(Distro::UnknownDistro); in DetectDistro()
198 return Distro::OpenSUSE; in DetectDistro()
199 return Distro::UnknownDistro; in DetectDistro()
201 return Distro::UnknownDistro; in DetectDistro()
206 return Distro::Gentoo; in DetectDistro()
208 return Distro::UnknownDistro; in DetectDistro()
211 static Distro::DistroType GetDistro(llvm::vfs::FileSystem &VFS, in GetDistro()
216 return Distro::UnknownDistro; in GetDistro()
227 return Distro::UnknownDistro; in GetDistro()
232 static Distro::DistroType LinuxDistro = DetectDistro(VFS); in GetDistro()
240 Distro::Distro(llvm::vfs::FileSystem &VFS, const llvm::Triple &TargetOrHost) in Distro() function in Distro