mirror of
				https://git.proxmox.com/git/llvm-toolchain
				synced 2025-10-31 00:40:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| Index: llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8/clang/lib/Driver/ToolChains/WebAssembly.h
 | |
| ===================================================================
 | |
| --- llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8.orig/clang/lib/Driver/ToolChains/WebAssembly.h
 | |
| +++ llvm-toolchain-snapshot_15~++20220724113059+7feab85df8e8/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 {
 | |
| @@ -68,7 +72,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); }
 | |
|  
 | |
|    CXXStdlibType GetDefaultCXXStdlibType() const override {
 | |
|      return ToolChain::CST_Libcxx;
 | 
