Skip to content

Commit

Permalink
Fix build instructions for Ubuntu 18.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 75c4740b277cf1e2cd53054e41cae6e1944695b9
  • Loading branch information
levlam committed Nov 18, 2019
1 parent fe6a635 commit 8182792
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
var use_vcpkg = os_windows;

var use_lto = false;
if (!use_msvc && language !== 'Java' && (os_mac || (os_linux && (linux_distro === 'Ubuntu 18' || linux_distro === 'Other')))) {
if (!use_msvc && language !== 'Java' && language !== 'Kotlin' && (os_mac || (os_linux && (linux_distro === 'Ubuntu 18' || linux_distro === 'Other')))) {
document.getElementById('buildLtoDiv').style.display = 'block';
use_lto = document.getElementById('buildLtoCheckbox').checked;
} else {
Expand Down Expand Up @@ -609,7 +609,7 @@
}
if (use_clang) {
if (linux_distro === 'Ubuntu 18') {
packages += ' clang-6.0 libc++abi-dev';
packages += ' clang-6.0 libc++-dev libc++abi-dev';
} else {
if (linux_distro === 'Ubuntu 14') {
packages += ' clang-3.9';
Expand Down Expand Up @@ -781,12 +781,14 @@
var prefix = '';
if (os_linux) {
if (use_clang) {
prefix = 'CC=/usr/bin/clang CXX=/usr/bin/clang++ ';
if (linux_distro === 'Ubuntu 18') {
prefix = 'CC=/usr/bin/clang-6.0 CXX=/usr/bin/clang++-6.0 ';
options.push('-DCMAKE_AR=/usr/bin/llvm-ar-6.0');
options.push('-DCMAKE_NM=/usr/bin/llvm-nm-6.0');
options.push('-DCMAKE_OBJDUMP=/usr/bin/llvm-objdump-6.0');
options.push('-DCMAKE_RANLIB=/usr/bin/llvm-ranlib-6.0');
} else {
prefix = 'CC=/usr/bin/clang CXX=/usr/bin/clang++ ';
}
} else if (linux_distro === 'Ubuntu 14') {
prefix = 'CC=/usr/bin/gcc-4.9 CXX=/usr/bin/g++-4.9 ';
Expand Down

0 comments on commit 8182792

Please sign in to comment.