1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

makefile: use just uname, not uname -o - osx has no -o (#2327)

* use just uname, not uname -s in makefile

* add mac detect
This commit is contained in:
joe-conigliaro 2019-10-14 01:15:12 +11:00 committed by GitHub
parent a90427a663
commit 5dfdd87707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,11 +8,14 @@ ifneq ($(filter $(_SYS),MSYS MinGW),)
WIN32 := 1
endif
_SYS := $(shell uname -o)
ifeq ($(_SYS),GNU/Linux)
ifeq ($(_SYS),Linux)
LINUX := 1
endif
ifeq ($(_SYS),Darwin)
MAC := 1
endif
all: fresh_vc fresh_tcc
ifdef WIN32
$(CC) -std=c99 -w -o v0.exe vc/v_win.c