]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/go, make: remove ccflags
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 4 Feb 2015 00:17:08 +0000 (16:17 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 4 Feb 2015 16:15:00 +0000 (16:15 +0000)
cc is no more.

Change-Id: I8d1bc0d2e471cd9357274204c9bc1fa67cbc272d
Reviewed-on: https://go-review.googlesource.com/3833
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/cmd/go/build.go
src/cmd/go/doc.go
src/cmd/go/testflag.go
src/make.bash
src/make.rc

index ad44bf0975e8fef27f9ed94db5125ea443da563e..b2cb7227c616ed34f3abb1d9d461196ef8fda922 100644 (file)
@@ -74,8 +74,6 @@ and test commands:
        -x
                print the commands.
 
-       -ccflags 'arg list'
-               arguments to pass on each 5c, 6c, or 8c compiler invocation.
        -compiler name
                name of compiler to use, as in runtime.Compiler (gccgo or gc).
        -gccgoflags 'arg list'
@@ -131,7 +129,6 @@ var buildI bool               // -i flag
 var buildO = cmdBuild.Flag.String("o", "", "output file")
 var buildWork bool           // -work flag
 var buildGcflags []string    // -gcflags flag
-var buildCcflags []string    // -ccflags flag
 var buildLdflags []string    // -ldflags flag
 var buildGccgoflags []string // -gccgoflags flag
 var buildRace bool           // -race flag
@@ -183,7 +180,6 @@ func addBuildFlags(cmd *Command) {
        cmd.Flag.BoolVar(&buildX, "x", false, "")
        cmd.Flag.BoolVar(&buildWork, "work", false, "")
        cmd.Flag.Var((*stringsFlag)(&buildGcflags), "gcflags", "")
-       cmd.Flag.Var((*stringsFlag)(&buildCcflags), "ccflags", "")
        cmd.Flag.Var((*stringsFlag)(&buildLdflags), "ldflags", "")
        cmd.Flag.Var((*stringsFlag)(&buildGccgoflags), "gccgoflags", "")
        cmd.Flag.Var((*stringsFlag)(&buildContext.BuildTags), "tags", "")
@@ -2648,7 +2644,6 @@ func raceInit() {
        }
        buildGcflags = append(buildGcflags, "-race")
        buildLdflags = append(buildLdflags, "-race")
-       buildCcflags = append(buildCcflags, "-D", "RACE")
        if buildContext.InstallSuffix != "" {
                buildContext.InstallSuffix += "_"
        }
index 2f783648edb22495b7b504955c51b9afd24d954f..398f83d113b2126ea517e1f866db0c4d4cab0160 100644 (file)
@@ -93,8 +93,6 @@ and test commands:
        -x
                print the commands.
 
-       -ccflags 'arg list'
-               arguments to pass on each 5c, 6c, or 8c compiler invocation.
        -compiler name
                name of compiler to use, as in runtime.Compiler (gccgo or gc).
        -gccgoflags 'arg list'
index 4d73370fa54e475057362d7439279a500f0b145a..b3479e1b2338ec9a739d7d1b2ae8c89baebec19f 100644 (file)
@@ -77,7 +77,6 @@ var testFlagDefn = []*testFlagSpec{
        {name: "x", boolVar: &buildX},
        {name: "i", boolVar: &buildI},
        {name: "work", boolVar: &buildWork},
-       {name: "ccflags"},
        {name: "gcflags"},
        {name: "exec"},
        {name: "ldflags"},
@@ -165,11 +164,6 @@ func testFlags(args []string) (packageNames, passToTest []string) {
                        if err != nil {
                                fatalf("invalid flag argument for -%s: %v", f.name, err)
                        }
-               case "ccflags":
-                       buildCcflags, err = splitQuotedFields(value)
-                       if err != nil {
-                               fatalf("invalid flag argument for -%s: %v", f.name, err)
-                       }
                case "gcflags":
                        buildGcflags, err = splitQuotedFields(value)
                        if err != nil {
index c8573c9954b1e10be028405909ff1ced226b0d82..bf83ee643f38378b1836f54fbf70472ef348c681 100755 (executable)
@@ -25,9 +25,6 @@
 # GO_LDFLAGS: Additional 5l/6l/8l arguments to use when
 # building the commands.
 #
-# GO_CCFLAGS: Additional 5c/6c/8c arguments to use when
-# building.
-#
 # 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.
@@ -158,12 +155,12 @@ if [ "$GOHOSTARCH" != "$GOARCH" -o "$GOHOSTOS" != "$GOOS" ]; then
        # CC_FOR_TARGET is recorded as the default compiler for the go tool. When building for the host, however,
        # use the host compiler, CC, from `cmd/dist/dist env` instead.
        CC=$CC GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH \
-               "$GOTOOLDIR"/go_bootstrap install -ccflags "$GO_CCFLAGS" -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std
+               "$GOTOOLDIR"/go_bootstrap install -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std
        echo
 fi
 
 echo "##### Building packages and commands for $GOOS/$GOARCH."
-CC=$CC_FOR_TARGET "$GOTOOLDIR"/go_bootstrap install $GO_FLAGS -ccflags "$GO_CCFLAGS" -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std
+CC=$CC_FOR_TARGET "$GOTOOLDIR"/go_bootstrap install $GO_FLAGS -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std
 echo
 
 rm -f "$GOTOOLDIR"/go_bootstrap
index 5fe30aced7ca2e5ba3ec400009b1946313e66437..7d57c25ff5fdb5fc9b22325e547a54616b7e5081 100755 (executable)
@@ -25,9 +25,6 @@
 # GO_LDFLAGS: Additional 5l/6l/8l arguments to use when
 # building the commands.
 #
-# GO_CCFLAGS: Additional 5c/6c/8c arguments to use when
-# building.
-#
 # 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.
@@ -89,12 +86,12 @@ if(~ $sysname vx32)
 if(! ~ $GOHOSTARCH $GOARCH || ! ~ $GOHOSTOS $GOOS){
        echo '# Building packages and commands for host,' $GOHOSTOS/$GOHOSTARCH^.
        GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH \
-               $GOTOOLDIR/go_bootstrap install -ccflags $"GO_CCFLAGS -gcflags $"GO_GCFLAGS -ldflags $"GO_LDFLAGS -v $pflag std
+               $GOTOOLDIR/go_bootstrap install -gcflags $"GO_GCFLAGS -ldflags $"GO_LDFLAGS -v $pflag std
        echo
 }
 
 echo '# Building packages and commands for' $GOOS/$GOARCH^.
-$GOTOOLDIR/go_bootstrap install -ccflags $"GO_CCFLAGS -gcflags $"GO_GCFLAGS -ldflags $"GO_LDFLAGS -v $pflag std
+$GOTOOLDIR/go_bootstrap install -gcflags $"GO_GCFLAGS -ldflags $"GO_LDFLAGS -v $pflag std
 echo
 
 rm -f $GOTOOLDIR/go_bootstrap