main: do not run legacy init interpreter with run subcommand
Do not run the new init interpreter either. Just run the code.
Этот коммит содержится в:
		
							родитель
							
								
									21db7e6099
								
							
						
					
					
						коммит
						ecb4742316
					
				
					 1 изменённых файлов: 3 добавлений и 2 удалений
				
			
		
							
								
								
									
										5
									
								
								main.go
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								main.go
									
										
									
									
									
								
							| 
						 | 
					@ -342,8 +342,9 @@ func FlashGDB(pkgName, target, port string, ocdOutput bool, config *BuildConfig)
 | 
				
			||||||
// Run the specified package directly (using JIT or interpretation).
 | 
					// Run the specified package directly (using JIT or interpretation).
 | 
				
			||||||
func Run(pkgName string) error {
 | 
					func Run(pkgName string) error {
 | 
				
			||||||
	config := compiler.Config{
 | 
						config := compiler.Config{
 | 
				
			||||||
		RootDir: sourceDir(),
 | 
							RootDir:    sourceDir(),
 | 
				
			||||||
		GOPATH:  getGopath(),
 | 
							GOPATH:     getGopath(),
 | 
				
			||||||
 | 
							InitInterp: true,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	c, err := compiler.NewCompiler(pkgName, config)
 | 
						c, err := compiler.NewCompiler(pkgName, config)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче