llvm: fix (#3)
This commit is contained in:
		
							parent
							
								
									52b51c90b8
								
							
						
					
					
						commit
						43a359c58d
					
				
					 2 changed files with 18 additions and 1 deletions
				
			
		|  | @ -9,7 +9,7 @@ fetch() { | |||
| 	mv llvm-project-$pkgver.src $pkgname-$pkgver | ||||
| 
 | ||||
| 	# fixes relaxation | ||||
| 	curl "https://reviews.llvm.org/file/data/fwstsxaybgq26x5dtdbg/PHID-FILE-pptlyffhoud7h2kme6qo/D100835.diff" | patch -p0 | ||||
| 	patch -p1 < ../../riscv-relax.patch | ||||
| 
 | ||||
| 	cp -n ../default.llvm.conf /etc/iglupkg/llvm.conf | ||||
| 	[ ../default/llvm.conf -nt /etc/iglupkg/llvm.conf ] && echo "WARNING: the default config file is newer than your config file." done | ||||
|  |  | |||
							
								
								
									
										17
									
								
								base/llvm/riscv-relax.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								base/llvm/riscv-relax.patch
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| diff --git a/clang/lib/Driver/ToolChains/Arch/RISCV.cpp b/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
 | ||||
| index 8c343b869..65c357e86 100644
 | ||||
| --- a/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
 | ||||
| +++ b/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
 | ||||
| @@ -426,11 +426,7 @@ void riscv::getRISCVTargetFeatures(const Driver &D, const llvm::Triple &Triple,
 | ||||
|    if (Args.hasArg(options::OPT_ffixed_x31)) | ||||
|      Features.push_back("+reserve-x31"); | ||||
|   | ||||
| -  // -mrelax is default, unless -mno-relax is specified.
 | ||||
| -  if (Args.hasFlag(options::OPT_mrelax, options::OPT_mno_relax, true))
 | ||||
| -    Features.push_back("+relax");
 | ||||
| -  else
 | ||||
| -    Features.push_back("-relax");
 | ||||
| +  Features.push_back("-relax");
 | ||||
|   | ||||
|    // GCC Compatibility: -mno-save-restore is default, unless -msave-restore is | ||||
|    // specified... | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue