v93.0-1
This commit is contained in:
parent
26d33367db
commit
17e1d6daf7
3 changed files with 13 additions and 19 deletions
|
|
@ -5,24 +5,18 @@ Author: Olivier Tilloy <olivier.tilloy@canonical.com>
|
||||||
|
|
||||||
--- a/build/moz.configure/toolchain.configure
|
--- a/build/moz.configure/toolchain.configure
|
||||||
+++ b/build/moz.configure/toolchain.configure
|
+++ b/build/moz.configure/toolchain.configure
|
||||||
@@ -2349,15 +2349,17 @@
|
@@ -2287,10 +2287,12 @@
|
||||||
set_config("LINKER_KIND", select_linker.KIND)
|
set_config("LINKER_KIND", select_linker.KIND)
|
||||||
|
|
||||||
|
|
||||||
-@depends_if(select_linker, target, macos_sdk, target_sysroot_path, multiarch_dir)
|
-@depends_if(select_linker, target, target_sysroot, target_multiarch_dir, c_compiler)
|
||||||
+@depends_if(select_linker, target, macos_sdk, target_sysroot_path, multiarch_dir, host)
|
+@depends_if(select_linker, target, target_sysroot, target_multiarch_dir, c_compiler, host)
|
||||||
@imports("os")
|
@imports("os")
|
||||||
-def linker_ldflags(linker, target, macos_sdk, sysroot_path, multiarch_dir):
|
-def linker_ldflags(linker, target, sysroot, multiarch_dir, c_compiler):
|
||||||
+def linker_ldflags(linker, target, macos_sdk, sysroot_path, multiarch_dir, host):
|
+def linker_ldflags(linker, target, sysroot, multiarch_dir, c_compiler, host):
|
||||||
flags = list((linker and linker.LINKER_FLAG) or [])
|
flags = list((linker and linker.LINKER_FLAG) or [])
|
||||||
if target.kernel == "Darwin":
|
|
||||||
if linker and linker.KIND == "ld64":
|
|
||||||
flags.append("-Wl,-syslibroot,%s" % macos_sdk)
|
|
||||||
else:
|
|
||||||
flags.append("-Wl,--sysroot=%s" % macos_sdk)
|
|
||||||
+ if host.cpu == "arm":
|
+ if host.cpu == "arm":
|
||||||
+ flags.append("-Wl,--no-keep-memory")
|
+ flags.append("-Wl,--no-keep-memory")
|
||||||
|
|
||||||
# rpath-link is irrelevant to wasm, see for more info https://github.com/emscripten-core/emscripten/issues/11076.
|
# rpath-link is irrelevant to wasm, see for more info https://github.com/emscripten-core/emscripten/issues/11076.
|
||||||
if sysroot_path and multiarch_dir and target.os != "WASI":
|
if sysroot.path and multiarch_dir and target.os != "WASI":
|
||||||
|
for d in ("lib", "usr/lib"):
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ if [[ $CARCH == 'x86_64' ]];then
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add
|
||||||
apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main"
|
apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main"
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install clang-12 libclang-12-dev
|
apt-get -y install clang-13 libclang-13-dev
|
||||||
else
|
else
|
||||||
apt install -y software-properties-common apt-transport-https ca-certificates
|
apt install -y software-properties-common apt-transport-https ca-certificates
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add
|
||||||
|
|
|
||||||
|
|
@ -105,11 +105,11 @@ else
|
||||||
# ubuntu seems to recommend this
|
# ubuntu seems to recommend this
|
||||||
ac_add_options --disable-elf-hack
|
ac_add_options --disable-elf-hack
|
||||||
|
|
||||||
export CC='clang-12'
|
export CC='clang-13'
|
||||||
export CXX='clang++-12'
|
export CXX='clang++-13'
|
||||||
export AR=llvm-ar-12
|
export AR=llvm-ar-13
|
||||||
export NM=llvm-nm-12
|
export NM=llvm-nm-13
|
||||||
export RANLIB=llvm-ranlib-12
|
export RANLIB=llvm-ranlib-13
|
||||||
|
|
||||||
# probably not needed, enabled by default?
|
# probably not needed, enabled by default?
|
||||||
ac_add_options --enable-optimize
|
ac_add_options --enable-optimize
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue