From: LLVM Packaging Team Date: Tue, 8 Feb 2022 20:39:18 +0000 (+0000) Subject: wasm-ld-path X-Git-Tag: archive/raspbian/1%13.0.1-3+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1f61ae42d6f6880ba6903e8816ec9272dea6ea0b;p=llvm-toolchain-13.git wasm-ld-path =================================================================== Gbp-Pq: Name wasm-ld-path.diff --- diff --git a/clang/lib/Driver/ToolChains/WebAssembly.h b/clang/lib/Driver/ToolChains/WebAssembly.h index 8a3f82d9ef..96c513c826 100644 --- a/clang/lib/Driver/ToolChains/WebAssembly.h +++ b/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;