aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.html
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2022-07-12 20:20:13 +0300
committerlevlam <levlam@telegram.org>2022-07-12 20:20:13 +0300
commitef9df9f99b1a912573b03c18f33af085000c497a (patch)
tree44d49fb0ca9d39fbe4b5f3d545f725b84e7c2144 /build.html
parente44418f2b3a1533b71a20b80e201802efe55a6d9 (diff)
Add Ubuntu 22 to the list of Linux distros.
Diffstat (limited to 'build.html')
-rw-r--r--build.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/build.html b/build.html
index 5ca4a22ac..88739752d 100644
--- a/build.html
+++ b/build.html
@@ -246,6 +246,7 @@
<option>Ubuntu 16</option>
<option>Ubuntu 18</option>
<option>Ubuntu 20</option>
+ <option>Ubuntu 22</option>
<option>Other</option>
</select>
<p></p>
@@ -638,7 +639,7 @@ function onOptionsChanged() {
var use_vcpkg = os_windows;
var use_lto = false;
- if (!use_msvc && language !== 'Java' && language !== 'Kotlin' && (os_mac || (os_linux && (linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Other')))) {
+ if (!use_msvc && language !== 'Java' && language !== 'Kotlin' && (os_mac || (os_linux && (linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Ubuntu 22' || linux_distro === 'Other')))) {
document.getElementById('buildLtoDiv').style.display = 'block';
use_lto = document.getElementById('buildLtoCheckbox').checked;
} else {
@@ -797,6 +798,8 @@ function onOptionsChanged() {
return '-6.0';
case 'Ubuntu 20':
return '-10';
+ case 'Ubuntu 22':
+ return '-14';
default:
return ''; // use default version
}
@@ -849,6 +852,7 @@ function onOptionsChanged() {
case 'Ubuntu 16':
case 'Ubuntu 18':
case 'Ubuntu 20':
+ case 'Ubuntu 22':
if (linux_distro.includes('Debian') && !use_root) {
commands.push('su -');
}
@@ -873,7 +877,7 @@ function onOptionsChanged() {
}
if (use_clang) {
packages += ' clang' + getClangVersionSuffix() + ' libc++-dev';
- if (linux_distro === 'Debian 10+' || linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20') {
+ if (linux_distro === 'Debian 10+' || linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Ubuntu 22') {
packages += ' libc++abi-dev';
}
} else {