diff options
| author | levlam <levlam@telegram.org> | 2026-07-08 19:51:12 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-07-08 19:51:12 +0300 |
| commit | 477e65a009eedbbc7d3ddd2159bf5d7601af891b (patch) | |
| tree | aad822d9d20ef4fdac3f5c4104e4c3d326260e8b | |
| parent | c0763c3ad6970e78d714bbeea45930b47dd949a9 (diff) | |
Add Ubuntu 26 to build instructions generator.
| -rw-r--r-- | build.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/build.html b/build.html index 0ee19a925..02acb18d5 100644 --- a/build.html +++ b/build.html @@ -247,6 +247,7 @@ <option>Ubuntu 20</option> <option>Ubuntu 22</option> <option>Ubuntu 24</option> + <option>Ubuntu 26</option> <option>Other</option> </select> <p></p> @@ -645,7 +646,7 @@ function onOptionsChanged() { var use_vcpkg = os_windows; var use_lto = false; - if (!use_msvc && language !== 'Go' && language !== 'Java' && language !== 'Kotlin' && (os_mac || (os_linux && (linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Ubuntu 22' || linux_distro === 'Ubuntu 24' || linux_distro === 'Other')))) { + if (!use_msvc && language !== 'Go' && language !== 'Java' && language !== 'Kotlin' && (os_mac || (os_linux && (linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Ubuntu 22' || linux_distro === 'Ubuntu 24' || linux_distro === 'Ubuntu 26' || linux_distro === 'Other')))) { document.getElementById('buildLtoDiv').style.display = 'block'; use_lto = document.getElementById('buildLtoCheckbox').checked; } else { @@ -806,6 +807,8 @@ function onOptionsChanged() { return '-14'; case 'Ubuntu 24': return '-18'; + case 'Ubuntu 26': + return '-21'; default: return ''; // use default version } @@ -816,6 +819,7 @@ function onOptionsChanged() { case 'Ubuntu 20': case 'Ubuntu 22': case 'Ubuntu 24': + case 'Ubuntu 26': return getClangVersionSuffix(); default: return ''; // use default version @@ -874,6 +878,7 @@ function onOptionsChanged() { case 'Ubuntu 20': case 'Ubuntu 22': case 'Ubuntu 24': + case 'Ubuntu 26': if (linux_distro.includes('Debian') && !use_root) { commands.push('su -'); } @@ -884,10 +889,7 @@ function onOptionsChanged() { packages += ' default-jdk'; } if (use_clang) { - packages += ' clang' + getClangVersionSuffix() + ' libc++' + getLibcplusplusVersionSuffix() + '-dev'; - if (linux_distro === 'Debian 10+' || linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Ubuntu 22' || linux_distro === 'Ubuntu 24') { - packages += ' libc++abi' + getLibcplusplusVersionSuffix() + '-dev'; - } + packages += ' clang' + getClangVersionSuffix() + ' libc++' + getLibcplusplusVersionSuffix() + '-dev libc++abi' + getLibcplusplusVersionSuffix() + '-dev'; } else { packages += ' g++'; } |
