Use the version suffix when calling wasm-ld => wasm-ld-13 https://bugzilla.mozilla.org/show_bug.cgi?id=1747145

This commit is contained in:
Sylvestre Ledru 2021-12-22 10:30:00 +01:00
parent e5705b8038
commit f89797103e
3 changed files with 30 additions and 0 deletions

2
debian/changelog vendored
View File

@ -7,6 +7,8 @@ llvm-toolchain-13 (1:13.0.1~+rc1-1~exp2) experimental; urgency=medium
https://github.com/llvm/llvm-project/issues/42339 https://github.com/llvm/llvm-project/issues/42339
* Remove AVR from LLVM_EXPERIMENTAL_TARGETS_TO_BUILD. stable since 11 * Remove AVR from LLVM_EXPERIMENTAL_TARGETS_TO_BUILD. stable since 11
https://releases.llvm.org/11.0.0/docs/ReleaseNotes.html#changes-to-the-avr-target https://releases.llvm.org/11.0.0/docs/ReleaseNotes.html#changes-to-the-avr-target
* Use the version suffix when calling wasm-ld => wasm-ld-13
https://bugzilla.mozilla.org/show_bug.cgi?id=1747145
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 16 Dec 2021 14:28:09 +0100 -- Sylvestre Ledru <sylvestre@debian.org> Thu, 16 Dec 2021 14:28:09 +0100

View File

@ -151,3 +151,4 @@ llvm-runtimes-builtins-build-check.diff
compilerrt-builtins-arch-fix-armhf.diff compilerrt-builtins-arch-fix-armhf.diff
compilerrt-build-scudo-standalone-option.diff compilerrt-build-scudo-standalone-option.diff
use-gold-for-compiler-rt-when-set.diff use-gold-for-compiler-rt-when-set.diff
wasm-ld-path.diff

27
debian/patches/wasm-ld-path.diff vendored Normal file
View File

@ -0,0 +1,27 @@
Index: llvm-toolchain-13-13.0.1~+rc1/clang/lib/Driver/ToolChains/WebAssembly.h
===================================================================
--- llvm-toolchain-13-13.0.1~+rc1.orig/clang/lib/Driver/ToolChains/WebAssembly.h
+++ llvm-toolchain-13-13.0.1~+rc1/clang/lib/Driver/ToolChains/WebAssembly.h
@@ -10,9 +10,13 @@
#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_WEBASSEMBLY_H
#include "Gnu.h"
+#include "llvm/Config/llvm-config.h" // for LLVM_VERSION_MAJOR
#include "clang/Driver/Tool.h"
#include "clang/Driver/ToolChain.h"
+#define TOSTR2(X) #X
+#define TOSTR(X) TOSTR2(X)
+
namespace clang {
namespace driver {
namespace tools {
@@ -67,7 +71,7 @@ private:
llvm::opt::ArgStringList &CmdArgs) const override;
SanitizerMask getSupportedSanitizers() const override;
- const char *getDefaultLinker() const override { return "wasm-ld"; }
+ const char *getDefaultLinker() const override { return "wasm-ld-" TOSTR(LLVM_VERSION_MAJOR); }
Tool *buildLinker() const override;