===================================================================
Gbp-Pq: Topic wasm
Gbp-Pq: Name wasm-ld-path.diff
#include "llvm/Support/Path.h"
#include "llvm/Support/VirtualFileSystem.h"
+#include "llvm/Config/llvm-config.h" // for LLVM_VERSION_MAJOR
+
+#define TOSTR2(X) #X
+#define TOSTR(X) TOSTR2(X)
+
using namespace clang::driver;
using namespace clang::driver::tools;
using namespace clang::driver::toolchains;
const char *WebAssembly::getDefaultLinker() const {
if (getOS() == "wasip2")
return "wasm-component-ld";
- return "wasm-ld";
+ return "wasm-ld-" TOSTR(LLVM_VERSION_MAJOR);
}
bool WebAssembly::IsMathErrnoDefault() const { return false; }