]> Cypherpunks.ru repositories - gostls13.git/blob - src/run.bat
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / src / run.bat
1 :: Copyright 2012 The Go Authors. All rights reserved.\r
2 :: Use of this source code is governed by a BSD-style\r
3 :: license that can be found in the LICENSE file.\r
4 \r
5 @echo off\r
6 \r
7 if exist ..\bin\go.exe goto ok\r
8 echo Must run run.bat from Go src directory after installing cmd/go.\r
9 goto fail\r
10 :ok\r
11 \r
12 :: Keep environment variables within this script\r
13 :: unless invoked with --no-local.\r
14 if x%1==x--no-local goto nolocal\r
15 if x%2==x--no-local goto nolocal\r
16 setlocal\r
17 :nolocal\r
18 \r
19 set GOBUILDFAIL=0\r
20 \r
21 set GOENV=off\r
22 ..\bin\go tool dist env > env.bat\r
23 if errorlevel 1 goto fail\r
24 call .\env.bat\r
25 del env.bat\r
26 \r
27 set GOPATH=c:\nonexist-gopath\r
28 \r
29 if x%1==x--no-rebuild goto norebuild\r
30 ..\bin\go tool dist test --rebuild\r
31 if errorlevel 1 goto fail\r
32 goto end\r
33 \r
34 :norebuild\r
35 ..\bin\go tool dist test\r
36 if errorlevel 1 goto fail\r
37 goto end\r
38 \r
39 :fail\r
40 set GOBUILDFAIL=1\r
41 \r
42 :end\r