aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.html
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-05-12 23:32:01 +0300
committerlevlam <levlam@telegram.org>2024-05-12 23:32:01 +0300
commitbae33683869c3bd748ea1c022744b02affc8de8f (patch)
tree641a39078e2d8a71a89f0cc5f4db85866864c912 /build.html
parentaf954008e6ebda8528c5d09a774025ad64aa2a6e (diff)
Use specific libc++ version on newer Ubuntu versions.
Diffstat (limited to 'build.html')
-rw-r--r--build.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/build.html b/build.html
index 6250022e8..3dd6de3f9 100644
--- a/build.html
+++ b/build.html
@@ -807,6 +807,16 @@ function onOptionsChanged() {
}
}
+ function getLibcplusplusVersionSuffix() {
+ switch (linux_distro) {
+ case 'Ubuntu 20':
+ case 'Ubuntu 22':
+ return getClangVersionSuffix();
+ default:
+ return ''; // use default version
+ }
+ }
+
var commands = [];
var php = 'php';
@@ -878,9 +888,9 @@ function onOptionsChanged() {
packages += ' default-jdk';
}
if (use_clang) {
- packages += ' clang' + getClangVersionSuffix() + ' libc++-dev';
+ packages += ' clang' + getClangVersionSuffix() + ' libc++' + getLibcplusplusVersionSuffix() + '-dev';
if (linux_distro === 'Debian 10+' || linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Ubuntu 22') {
- packages += ' libc++abi-dev';
+ packages += ' libc++abi' + getLibcplusplusVersionSuffix() + '-dev';
}
} else {
packages += ' g++';