PNG  IHDR  8] PLTE S =tRNS   PNG  IHDR  8] PLTE S =tRNS   REDROOM
PHP 7.4.33
Preview: make.bat Size: 6.37 KB
/proc/thread-self/root/opt/golang/1.22.0/src/make.bat

:: Copyright 2012 The Go Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style
:: license that can be found in the LICENSE file.

:: Environment variables that control make.bat:
::
:: GOROOT_FINAL: The expected final Go root, baked into binaries.
:: The default is the location of the Go tree during the build.
::
:: GOHOSTARCH: The architecture for host tools (compilers and
:: binaries).  Binaries of this type must be executable on the current
:: system, so the only common reason to set this is to set
:: GOHOSTARCH=386 on an amd64 machine.
::
:: GOARCH: The target architecture for installed packages and tools.
::
:: GOOS: The target operating system for installed packages and tools.
::
:: GO_GCFLAGS: Additional go tool compile arguments to use when
:: building the packages and commands.
::
:: GO_LDFLAGS: Additional go tool link arguments to use when
:: building the commands.
::
:: CGO_ENABLED: Controls cgo usage during the build. Set it to 1
:: to include all cgo related files, .c and .go file with "cgo"
:: build directive, in the build. Set it to 0 to ignore them.
::
:: CC: Command line to run to compile C code for GOHOSTARCH.
:: Default is "gcc".
::
:: CC_FOR_TARGET: Command line to run compile C code for GOARCH.
:: This is used by cgo. Default is CC.
::
:: FC: Command line to run to compile Fortran code.
:: This is used by cgo. Default is "gfortran".

@echo off

:: Keep environment variables within this script
:: unless invoked with --no-local.
if x%1==x-no-local goto nolocal
if x%2==x-no-local goto nolocal
if x%3==x-no-local goto nolocal
if x%4==x-no-local goto nolocal
if x%1==x--no-local goto nolocal
if x%2==x--no-local goto nolocal
if x%3==x--no-local goto nolocal
if x%4==x--no-local goto nolocal
setlocal
:nolocal

set GOBUILDFAIL=0

if exist make.bat goto ok
echo Must run make.bat from Go src directory.
goto fail
:ok

:: Clean old generated file that will cause problems in the build.
del /F ".\pkg\runtime\runtime_defs.go" 2>NUL

:: Set GOROOT for build.
cd ..
set GOROOT_TEMP=%CD%
set GOROOT=
cd src
set vflag=
if x%1==x-v set vflag=-v
if x%2==x-v set vflag=-v
if x%3==x-v set vflag=-v
if x%4==x-v set vflag=-v

if not exist ..\bin\tool mkdir ..\bin\tool

:: Calculating GOROOT_BOOTSTRAP
if not "x%GOROOT_BOOTSTRAP%"=="x" goto bootstrapset
for /f "tokens=*" %%g in ('where go 2^>nul') do (
	if "x%GOROOT_BOOTSTRAP%"=="x" (
		setlocal
		call :nogoenv
		for /f "tokens=*" %%i in ('"%%g" env GOROOT 2^>nul') do (
			endlocal
			if /I not "%%i"=="%GOROOT_TEMP%" (
				set GOROOT_BOOTSTRAP=%%i
			)
		)
	)
)

set bootgo=1.20.6
if "x%GOROOT_BOOTSTRAP%"=="x" if exist "%HOMEDRIVE%%HOMEPATH%\go%bootgo%" set GOROOT_BOOTSTRAP=%HOMEDRIVE%%HOMEPATH%\go%bootgo%
if "x%GOROOT_BOOTSTRAP%"=="x" if exist "%HOMEDRIVE%%HOMEPATH%\sdk\go%bootgo%" set GOROOT_BOOTSTRAP=%HOMEDRIVE%%HOMEPATH%\sdk\go%bootgo%
if "x%GOROOT_BOOTSTRAP%"=="x" set GOROOT_BOOTSTRAP=%HOMEDRIVE%%HOMEPATH%\Go1.4

:bootstrapset
if not exist "%GOROOT_BOOTSTRAP%\bin\go.exe" goto bootstrapfail
set GOROOT=%GOROOT_TEMP%
set GOROOT_TEMP=

setlocal
call :nogoenv
for /f "tokens=*" %%g IN ('"%GOROOT_BOOTSTRAP%\bin\go" version') do (set GOROOT_BOOTSTRAP_VERSION=%%g)
set GOROOT_BOOTSTRAP_VERSION=%GOROOT_BOOTSTRAP_VERSION:go version =%
echo Building Go cmd/dist using %GOROOT_BOOTSTRAP%. (%GOROOT_BOOTSTRAP_VERSION%)
if x%vflag==x-v echo cmd/dist
set GOROOT=%GOROOT_BOOTSTRAP%
set GOBIN=
"%GOROOT_BOOTSTRAP%\bin\go.exe" build -o cmd\dist\dist.exe .\cmd\dist
endlocal
if errorlevel 1 goto fail
.\cmd\dist\dist.exe env -w -p >env.bat
if errorlevel 1 goto fail
call .\env.bat
del env.bat
if x%vflag==x-v echo.

if x%1==x-dist-tool goto copydist
if x%2==x-dist-tool goto copydist
if x%3==x-dist-tool goto copydist
if x%4==x-dist-tool goto copydist
if x%1==x--dist-tool goto copydist
if x%2==x--dist-tool goto copydist
if x%3==x--dist-tool goto copydist
if x%4==x--dist-tool goto copydist

set bootstrapflags=
if x%1==x-no-clean set bootstrapflags=-no-clean
if x%2==x-no-clean set bootstrapflags=-no-clean
if x%3==x-no-clean set bootstrapflags=-no-clean
if x%4==x-no-clean set bootstrapflags=-no-clean
if x%1==x--no-clean set bootstrapflags=-no-clean
if x%2==x--no-clean set bootstrapflags=-no-clean
if x%3==x--no-clean set bootstrapflags=-no-clean
if x%4==x--no-clean set bootstrapflags=-no-clean
if x%1==x-no-banner set bootstrapflags=%bootstrapflags% -no-banner
if x%2==x-no-banner set bootstrapflags=%bootstrapflags% -no-banner
if x%3==x-no-banner set bootstrapflags=%bootstrapflags% -no-banner
if x%4==x-no-banner set bootstrapflags=%bootstrapflags% -no-banner
if x%1==x--no-banner set bootstrapflags=%bootstrapflags% -no-banner
if x%2==x--no-banner set bootstrapflags=%bootstrapflags% -no-banner
if x%3==x--no-banner set bootstrapflags=%bootstrapflags% -no-banner
if x%4==x--no-banner set bootstrapflags=%bootstrapflags% -no-banner
if x%1==x-distpack set bootstrapflags=%bootstrapflags% -distpack
if x%2==x-distpack set bootstrapflags=%bootstrapflags% -distpack
if x%3==x-distpack set bootstrapflags=%bootstrapflags% -distpack
if x%4==x-distpack set bootstrapflags=%bootstrapflags% -distpack
if x%1==x--distpack set bootstrapflags=%bootstrapflags% -distpack
if x%2==x--distpack set bootstrapflags=%bootstrapflags% -distpack
if x%3==x--distpack set bootstrapflags=%bootstrapflags% -distpack
if x%4==x--distpack set bootstrapflags=%bootstrapflags% -distpack

:: Run dist bootstrap to complete make.bash.
:: Bootstrap installs a proper cmd/dist, built with the new toolchain.
:: Throw ours, built with the bootstrap toolchain, away after bootstrap.
.\cmd\dist\dist.exe bootstrap -a %vflag% %bootstrapflags%
if errorlevel 1 goto fail
del .\cmd\dist\dist.exe
goto :eof

:: DO NOT ADD ANY NEW CODE HERE.
:: The bootstrap+del above are the final step of make.bat.
:: If something must be added, add it to cmd/dist's cmdbootstrap,
:: to avoid needing three copies in three different shell languages
:: (make.bash, make.bat, make.rc).

:copydist
mkdir "%GOTOOLDIR%" 2>NUL
copy cmd\dist\dist.exe "%GOTOOLDIR%\"
goto :eof

:nogoenv
set GO111MODULE=off
set GOENV=off
set GOOS=
set GOARCH=
set GOEXPERIMENT=
set GOFLAGS=
goto :eof

:bootstrapfail
echo ERROR: Cannot find %GOROOT_BOOTSTRAP%\bin\go.exe
echo Set GOROOT_BOOTSTRAP to a working Go tree ^>= Go %bootgo%.

:fail
set GOBUILDFAIL=1
if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%

Directory Contents

Dirs: 51 × Files: 21

Name Size Perms Modified Actions
archive DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
arena DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
bufio DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
builtin DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
bytes DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
cmd DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
cmp DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
compress DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
container DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
context DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
crypto DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
database DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
debug DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
embed DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
encoding DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
errors DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
expvar DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
flag DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
fmt DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
go DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
hash DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
html DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
image DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
index DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
internal DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
io DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
iter DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
log DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
maps DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
math DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
mime DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
net DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
os DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
path DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
plugin DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
reflect DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
regexp DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
runtime DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
slices DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
sort DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
strconv DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
strings DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
sync DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
syscall DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
testdata DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
testing DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
text DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
time DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
unicode DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
unsafe DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
vendor DIR
- drwxr-xr-x 2024-02-02 18:09:55
Edit Download
375 B lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
543 B lrw-r--r-- 2024-02-02 18:09:55
Edit Download
388 B lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
2.25 KB lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
2.07 KB lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
518 B lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
600 B lrw-r--r-- 2024-02-02 18:09:55
Edit Download
380 B lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
1.46 KB lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
208 B lrw-r--r-- 2024-02-02 18:09:55
Edit Download
680 B lrw-r--r-- 2024-02-02 18:09:55
Edit Download
7.65 KB lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
6.37 KB lrw-r--r-- 2024-02-02 18:09:55
Edit Download
553 B lrw-r--r-- 2024-02-02 18:09:55
Edit Download
3.76 KB lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
919 B lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
1.07 KB lrw-r--r-- 2024-02-02 18:09:55
Edit Download
2.11 KB lrw-r--r-- 2024-02-02 18:09:55
Edit Download
2.09 KB lrwxr-xr-x 2024-02-02 18:09:55
Edit Download
859 B lrw-r--r-- 2024-02-02 18:09:55
Edit Download
406 B lrwxr-xr-x 2024-02-02 18:09:55
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
 !"#$%&'(()*+,-./00123456789 t\ wIDATx ]ys  47Y ƒ -  "  Rv  < f{Ɛ $k l L > L  ~h^ 1  [  r G t& h  l F z3O Y ! p A(_g̷ E8 )S 8 c  Kb"z ~ 5 J xAL WU <  *  5 m;W a pB h ~P J 2 3 6 ҙ .Ƹ P i  4g F R L P ΪK/D  M v (a3 k J Œ4N5* SH ` SdJ z  O J Xՠ V>u ߱ BE&L b2 ?2` tX+  c CB A$ i b C ĀMB E : /  # Dx &l =q Ty  0 \p I ( L Ǎ { e 4k ;`u^ヲ eP!( d {  )T A 8 O;Ě n >;s6 !  :Nx `[S D HU ~ q›J F} a g*D 49 / pn k h (t 8NxƐF _!r չ7 ZR R׷ q/5") Ӎ NY 0 x sZ!   o  fu  ,  K"$ ? pg  㕣=  1» {h " fh7    y  } € +7  $ y " X —ą - G P u 4 m >J 5 L =V ' ^@I p ?MS xЌ XV P ! h "C NS9B8̢ ]!K  e   zA , ӏkbY  !< XQ ٿyS| *" f { w  4@[S <  # 0 ! js [m  =,~ o "ݎ DHf Wo $ g ! Vԅ t mB /y Wf V4񺍸 c+@x?  B ~u " xUN e 0 BĂ) ~J pz! 7y6]l Ԥ@ P a< O /DHC `≻  N m"$  0ObB }{ x AO FCG D R ^ "B  { WDH  UR l@ T #  +"d T ; 0 i  D}. 7 ` ' ] w rE &S i ƕiTD EL P _ u h $ Ա FG wVD G L R Zf ' .!] J /ZR oGЍs Mr Ĥ ʬ 3 Q [3 cL ` ^ p + ( F;# B 5 '  2Y f [  ϶R0e }  E 7 6M aۮ H <& n % L] E}Up x紉, Uw' Q  Ǯշo k ވۙ 0N94 VX5 xEDE l D #֤ } C o )W :  ^ s 9  bRf iX5u ཱི 4 :[  T 1. | [E 2ؽ Iy\ : o x K G 5 ylP ' uK E ftb/i[3 .g _  [3M n G, #NwQ5~  ؚ) | n =Ц"x qg gB ` 듘 ~ x w ? ? R~  _ u. &VQ K˻   H C ( TN˄+ `C dA nB׭ D 3"Z G ê ^k H_ /- ~ " R_  .8 Z_ 6@ o  xg  uP ? 3լ @7AM!  E7^ - =V L  x  g-D0  CtmW 7  O  G _ WD0 g C  w1 r d w : a | \  *" f nֳ ^ H# f L ` Z ۽hV  }S F r0Ù Bć5r] @! NL iQ]{s^=4 d  WD  "  "   M; t" 8 5 e dL| "-*st" ) SWD ?R[S e ooF  20.D ? bo =) A i o d ģ ZҰaO @E =) i D a &ܟa CϞ y6 ,<%{^x%{f8? `iw^ ?/ M * IEND B`