Skip to content

Commit

Permalink
Add then remove gccgo compiler flag
Browse files Browse the repository at this point in the history
The gcc-based go compiler has some advantages (speed notably) over the
standalone go compiler, but it's not available for all distros:

    https://blog.golang.org/gccgo-in-gcc-471

Alpine and macOS have no support for gccgo at all at present.

Signed-off-by: Shay Gordon <moebius.le.roi@gmail.com>
  • Loading branch information
moebius-rex committed May 7, 2021
1 parent 5011fe7 commit 28172a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/go/app2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

GO = go
GOFLAGS = -compiler gccgo
GOFLAGS =

SRCDIR = .
Expand Down
1 change: 1 addition & 0 deletions src/main/go/app3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

GO = go
GOFLAGS = -compiler gccgo
GOFLAGS =
#CGO_LDFLAGS = -L/usr/local/lib -lcsieve

Expand Down
4 changes: 3 additions & 1 deletion src/main/go/sieve/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
# limitations under the License.

GO = go
GOFLAGS = -compiler gccgo
GOFLAGS =

all: build

build:
@$(GO) build .
@$(GO) build $(GOFLAGS) .

clean:
@$(GO) clean
Expand Down

0 comments on commit 28172a5

Please sign in to comment.