mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			283 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			283 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| dir=$(dirname "$0")
 | |
| source "$dir/config.sh"
 | |
| 
 | |
| # read nightly compiler from rust-toolchain file
 | |
| TOOLCHAIN=$(cat "$dir/rust-toolchain")
 | |
| 
 | |
| cmd=$1
 | |
| shift || true
 | |
| 
 | |
| if [[ "$cmd" = "jit" ]]; then
 | |
| cargo "+${TOOLCHAIN}" rustc "$@" -- --jit
 | |
| else
 | |
| cargo "+${TOOLCHAIN}" "$cmd" "$@"
 | |
| fi
 | 
