common/compiler: support relative import paths (#17374)
This commit is contained in:
		
							parent
							
								
									c2c4c9f1e5
								
							
						
					
					
						commit
						260b177fe3
					
				| @ -48,6 +48,7 @@ func (s *Solidity) makeArgs() []string { | ||||
| 	p := []string{ | ||||
| 		"--combined-json", "bin,bin-runtime,srcmap,srcmap-runtime,abi,userdoc,devdoc", | ||||
| 		"--optimize", // code optimizer switched on
 | ||||
| 		"--allow-paths", "., ./, ../", //default to support relative path: ./  ../  . 
 | ||||
| 	} | ||||
| 	if s.Major > 0 || s.Minor > 4 || s.Patch > 6 { | ||||
| 		p[1] += ",metadata,hashes" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user