mirror of
https://github.com/taigrr/gopher-os
synced 2025-01-18 04:43:13 -08:00
Make the GO variable visible on non-linux hosts
This commit is contained in:
parent
45fb719d04
commit
2f56d78629
7
Makefile
7
Makefile
@ -6,15 +6,16 @@ BUILD_ABS_DIR := $(CURDIR)/$(BUILD_DIR)
|
||||
kernel_target :=$(BUILD_DIR)/kernel-$(ARCH).bin
|
||||
iso_target := $(BUILD_DIR)/kernel-$(ARCH).iso
|
||||
|
||||
# If your go is called something else set it on the commandline, like
|
||||
# this: make run GO=go1.8
|
||||
GO ?= go
|
||||
|
||||
ifeq ($(OS), Linux)
|
||||
export SHELL := /bin/bash -o pipefail
|
||||
|
||||
LD := ld
|
||||
AS := nasm
|
||||
|
||||
# If your go is called something else set it on the commandline, like
|
||||
# this: make run GO=go1.8
|
||||
GO ?= go
|
||||
GOOS := linux
|
||||
GOARCH := amd64
|
||||
GOROOT := $(shell $(GO) env GOROOT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user