summaryrefslogtreecommitdiff
path: root/src/make.bat
Commit message (Collapse)AuthorAgeFilesLines
* build: unset GOBIN during buildBrad Fitzpatrick2016-05-191-0/+1
| | | | | | | | | Fixes #14340 Change-Id: I43e1624fafc972fb868708c3857fc8acf1bfbbd7 Reviewed-on: https://go-review.googlesource.com/23255 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Rob Pike <r@golang.org>
* cmd/go, go/build: add support for Fortrankortschak2016-02-241-0/+3
| | | | | | | | | | | | | | | | | | This change adds support for Fortran files (.f, .F, .for, .f90) to the go tool, in a similar fashion to Objective-C/C++. Only gfortran is supported out of the box so far but leaves other Fortran compiler toolchains the ability to pass the correct link options via CGO_LDFLAGS. A simple test (misc/cgo/fortran) has been added and plugged into the general test infrastructure. This test is only enabled when the $FC environment variable is defined (or if 'gfortran' was found in $PATH.) Derived from CL 4114. Change-Id: Ifc855091942f95c6e9b17d91c17ceb4eee376408 Reviewed-on: https://go-review.googlesource.com/19670 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
* doc: replace references to {5..9}{g,l} with go tool compile and go tool linkJeremy Jackins2015-06-171-2/+2
| | | | | | | | | I updated some references to 6g, 6l and friends that I came across, as those programs don't exist anymore. I also fixed some echos in make.rc to match other make.* scripts while I was there. Change-Id: Ib84532cd4688cf65174dd9869e5d42af98a20a48 Reviewed-on: https://go-review.googlesource.com/11162 Reviewed-by: Ian Lance Taylor <iant@golang.org>
* build: update Windows make.bat to use CC_FOR_TARGET.Hyang-Ah (Hana) Kim2015-03-021-2/+13
| | | | | | | Change-Id: Ie4d8bedb9408372dff64e9a7fd857e1be4ee59e1 Reviewed-on: https://go-review.googlesource.com/6401 Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
* [dev.cc] cmd/go: fix expansion of 'std', add 'cmd'Russ Cox2015-02-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The wildcard 'std' is defined in documentation to be all the packages in the Go standard library. It has also historically matched commands in the main repo, but as we implement core commands in Go, that becomes problematic. We need a wildcard that means just the library, and since 'std' is already documented to have that definition, make it so. Add a new wildcard 'cmd' for the commands in the main repo ($GOROOT). Commands that want both can say 'std cmd' (or 'cmd std') to get the effect of the old 'std'. Update make.bash etc to say both std and cmd most of the time. Exception: in race.bash, do not install race-enabled versions of the actual commands. This avoids trying to write binaries while using them, but more importantly it avoids enabling the race detector and its associated memory overhead for the already memory-hungry compilers. Change-Id: I26bb06cb13b636dfbe71a015ee0babeb270a0275 Reviewed-on: https://go-review.googlesource.com/5550 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Rob Pike <r@golang.org>
* [dev.cc] build: do not 'clean -i std' between dist and go_bootstrapRuss Cox2015-01-211-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Executing 'clean -i std' removes installed Go programs, including the toolchain binaries we need for building. It's not clear why the 'clean -i std' is here in the first place. cmd/dist just removed the entire pkg tree, so everything is new. The only reason for 'clean -i std' would be if you don't trust that dist compiled the packages properly. If that's true for some reason, we can fix cmd/dist, or add -a to the install commands that follow. Perhaps clean -i std should not remove tools, or perhaps std should not expand to any tools. Not sure. Also remove banner from make.bat and make.rc that was already removed from make.bash. cmd/dist prints it now. Also fix array size error in liblink/objfile.c. Fixes dev.cc build. Change-Id: I60855e001a682efce55ad9aa307a8f3ee47f7366 Reviewed-on: https://go-review.googlesource.com/3100 Reviewed-by: Russ Cox <rsc@golang.org>
* [dev.cc] build: do not pass GOHOSTOS and GOHOSTARCH to Go 1.4 buildRuss Cox2015-01-141-2/+2
| | | | | | | | | Go 1.4 should build what it knows how to build. GOHOSTOS and GOHOSTARCH are for the Go 1.5 build only. Change-Id: Id0f367f03485100a896e61cfdace4ac44a22e16d Reviewed-on: https://go-review.googlesource.com/2818 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* [dev.cc] build: fix cross-compilationRuss Cox2015-01-141-7/+3
| | | | | | | | Fixes #9574. Change-Id: Ifd7ecccb25e934f9aba284b2d72b6b22f18cb0b6 Reviewed-on: https://go-review.googlesource.com/2812 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* build: update Windows make.bat for Go-based distBrad Fitzpatrick2015-01-121-4/+12
| | | | | | | | | These are corresponding Windows changes for the GOROOT_BOOTSTRAP and dist changes in https://golang.org/cl/2470 Change-Id: I21da2d63a60d8ae278ade9bb71ae0c314a2cf9b5 Reviewed-on: https://go-review.googlesource.com/2674 Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
* build: change all.bash output to be more markdown-friendlyRuss Cox2014-12-131-4/+4
| | | | | | | | | | | | People keep pasting all.bash output into GitHub bugs, which turns the # lines into <h1> headlines. Add some more #s so that the bug reports are more readable. Not ideal but seems like the best of a few bad options. Change-Id: I4c69930ec304b2d504d7cd66221281a8577b87ae Reviewed-on: https://go-review.googlesource.com/1286 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Andrew Gerrand <adg@golang.org>
* build: fix windows make.batRuss Cox2014-09-071-1/+1
| | | | | | | | | The Unix make.bash builds cmd/dist from *.c. make.bat apparently does not. TBR=r CC=golang-codereviews https://golang.org/cl/137280043
* make.bat: do not exit builder on successful completion of make.bat (fixes build)Alex Brainman2014-07-211-1/+1
| | | | | | | LGTM=dvyukov R=golang-codereviews, dvyukov CC=golang-codereviews https://golang.org/cl/118020043
* make.bat: return exit code to dashboard builderAlex Brainman2014-07-121-0/+1
| | | | | | | | | Fixes #7806. LGTM=minux R=golang-codereviews, minux CC=golang-codereviews https://golang.org/cl/104690043
* cmd/dist: fix windows build.Rémy Oudompheng2013-08-021-1/+1
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12351045
* all.bat,make.bat,run.bat: make these work even when directory has space in itAlex Brainman2013-03-251-2/+2
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7510048
* go/types: delete from main repo; part of move to go.expRob Pike2013-03-121-4/+2
| | | | | | | | See also https://golang.org/cl/7656044 R=golang-dev, gri, rsc CC=golang-dev https://golang.org/cl/7625048
* make.bash,bat: add -tags gotypes to the buildRob Pike2013-03-061-2/+4
| | | | | | | | | This installs type checking into go vet. (To be removed before releasing Go 1.1) R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7528044
* lib9, cmd/dist, cmd/5l: embed GOARM into cmd/5l and auto detect GOARMShenghou Ma2012-10-221-1/+1
| | | | | | R=rsc, dave CC=golang-dev https://golang.org/cl/6638043
* cmd/dist: fix superfluous and confusing "binaries ... to be copied or moved" ↵Shenghou Ma2012-10-121-0/+8
| | | | | | | | | | | | message Also, to aid debugging cmd/dist, make make.bat support --dist-tool flag. Fixes #3100. R=alex.brainman CC=golang-dev https://golang.org/cl/6637061
* build: do more during windows buildAlex Brainman2012-03-201-5/+30
| | | | | | | | | | | - use GO_GCFLAGS and GO_LDFLAGS if supplied - build misc\dashboard\builder and misc\goplay - run tests in test\bench\go1 - check api compatibility R=golang-dev, r, kardianos, bradfitz CC=golang-dev https://golang.org/cl/5847063
* make.bat: don't show error message if old generated files do not existShenghou Ma2012-03-171-1/+1
| | | | | | R=golang-dev, alex.brainman, mattn.jp CC=golang-dev https://golang.org/cl/5843045
* make.bat: Fix for old filesChristopher Redden2012-03-161-0/+3
| | | | | | | | | | Same fix as applied here: https://golang.org/cl/5761044 Fixes #3222. R=golang-dev, alex.brainman, rsc CC=golang-dev https://golang.org/cl/5838043
* make.bat: properly handle directories with spacesAlex Brainman2012-03-131-6/+6
| | | | | | R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/5797079
* make.bat, run.bat: echo newlinesHector Chu2012-02-161-5/+4
| | | | | | R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5671072
* make.bat: implement --no-cleanAlex Brainman2012-02-161-1/+3
| | | | | | R=golang-dev, r CC=golang-dev https://golang.org/cl/5656070
* build: keep environment variable changes local during Windows buildAlex Brainman2012-02-161-5/+10
| | | | | | R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5673048
* cmd/dist: cross-compiling fixesRuss Cox2012-02-131-7/+29
| | | | | | | | | | | | | | | | | | | | | This CL makes it possible to run make.bash with GOOS and GOARCH set to something other than the native host GOOS and GOARCH. As part of the CL, the tool directory moves from bin/tool/ to pkg/tool/goos_goarch where goos and goarch are the values for the host system (running the build), not the target. pkg/ is not technically appropriate, but C objects are there now tool (pkg/obj/) so this puts all the generated binaries in one place (rm -rf $GOROOT/pkg cleans everything). Including goos_goarch in the name allows different systems to share a single $GOROOT on a shared file system. Fixes #2920. R=golang-dev, r CC=golang-dev https://golang.org/cl/5645093
* build: reject make.bash on WindowsRuss Cox2012-02-121-1/+2
| | | | | | | | | | | Also, echo cmd/dist during bootstrap build Makes that phase look like all the others. Fixes #2908. R=golang-dev, alex.brainman, bradfitz CC=golang-dev https://golang.org/cl/5655065
* make.bat: remove double quotesAlex Brainman2012-02-101-2/+2
| | | | | | | | Fixes #2974. R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/5653052
* cmd/dist: fix GOROOT_FINALGustavo Niemeyer2012-02-091-4/+6
| | | | | | R=rsc, gustavo CC=golang-dev https://golang.org/cl/5642045
* build: dist-based build for windowsRuss Cox2012-02-041-0/+52
R=golang-dev, bradfitz, iant, alex.brainman, go.peter.90 CC=golang-dev https://golang.org/cl/5630047