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:
parent
a90427a663
commit
5dfdd87707
7
Makefile
7
Makefile
@ -8,11 +8,14 @@ ifneq ($(filter $(_SYS),MSYS MinGW),)
|
|||||||
WIN32 := 1
|
WIN32 := 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
_SYS := $(shell uname -o)
|
ifeq ($(_SYS),Linux)
|
||||||
ifeq ($(_SYS),GNU/Linux)
|
|
||||||
LINUX := 1
|
LINUX := 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(_SYS),Darwin)
|
||||||
|
MAC := 1
|
||||||
|
endif
|
||||||
|
|
||||||
all: fresh_vc fresh_tcc
|
all: fresh_vc fresh_tcc
|
||||||
ifdef WIN32
|
ifdef WIN32
|
||||||
$(CC) -std=c99 -w -o v0.exe vc/v_win.c
|
$(CC) -std=c99 -w -o v0.exe vc/v_win.c
|
||||||
|
Loading…
Reference in New Issue
Block a user