forked from mirrors/gecko-dev
		
	Bug 1594520 - Change directory before running mach in .vscode/tasks.json on Windows. r=jya
The build is quite fragile if the path to mach is not precisely formatted. Work around this by cd-ing to the appropriate directory and then calling 'mach' with a relative path. This mimics a normal user workflow in mozilla-build. Differential Revision: https://phabricator.services.mozilla.com/D52968 --HG-- extra : moz-landing-system : lando
This commit is contained in:
		
							parent
							
								
									3eef8ed573
								
							
						
					
					
						commit
						55b1cc6058
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		
							
								
								
									
										6
									
								
								.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							|  | @ -8,8 +8,12 @@ | ||||||
|     "windows": { |     "windows": { | ||||||
|       "command": "/mozilla-build/start-shell.bat", |       "command": "/mozilla-build/start-shell.bat", | ||||||
|       "args": [ |       "args": [ | ||||||
|  |         "cd", | ||||||
|         // Use PowerShell to mangle path for mozilla-build environment |         // Use PowerShell to mangle path for mozilla-build environment | ||||||
|         {"value": "$('${workspaceFolder}\\mach' -replace '\\\\','/')", "quoting": "weak"}, |         {"value": "$('${workspaceFolder}' -replace '\\\\','/')", "quoting": "weak"}, | ||||||
|  |         "';'", | ||||||
|  | 
 | ||||||
|  |         "mach", | ||||||
|         "--log-no-times" |         "--log-no-times" | ||||||
|       ] |       ] | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Ted Campbell
						Ted Campbell