mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-10 03:40:29 +00:00
Remove MODE=darwin requirement
This commit is contained in:
parent
3e4f8b0b58
commit
50f62d37b0
2 changed files with 2 additions and 18 deletions
|
@ -12,7 +12,8 @@ PKG = build/bootstrap/package.com
|
||||||
MKDEPS = build/bootstrap/mkdeps.com
|
MKDEPS = build/bootstrap/mkdeps.com
|
||||||
ZIPOBJ = build/bootstrap/zipobj.com
|
ZIPOBJ = build/bootstrap/zipobj.com
|
||||||
|
|
||||||
ifeq ($(MODE), darwin)
|
ifeq ($(shell uname), Darwin)
|
||||||
|
|
||||||
TOOLPREFIX=/usr/local/bin/x86_64-linux-musl-
|
TOOLPREFIX=/usr/local/bin/x86_64-linux-musl-
|
||||||
AS = $(TOOLPREFIX)as
|
AS = $(TOOLPREFIX)as
|
||||||
CC = $(TOOLPREFIX)gcc
|
CC = $(TOOLPREFIX)gcc
|
||||||
|
|
|
@ -308,23 +308,6 @@ OBJDUMP = llvm-objdump
|
||||||
ADDR2LINE = llvm-addr2line
|
ADDR2LINE = llvm-addr2line
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# macOS using gcc - options copied from Tiny Metallic Unix Mode
|
|
||||||
ifeq ($(MODE), darwin)
|
|
||||||
CONFIG_CPPFLAGS += \
|
|
||||||
-DTINY \
|
|
||||||
-DNDEBUG \
|
|
||||||
-DTRUSTWORTHY \
|
|
||||||
-DSUPPORT_VECTOR=251
|
|
||||||
CONFIG_CCFLAGS += \
|
|
||||||
-Os \
|
|
||||||
-fno-align-functions \
|
|
||||||
-fno-align-jumps \
|
|
||||||
-fno-align-labels \
|
|
||||||
-fno-align-loops
|
|
||||||
TARGET_ARCH ?= \
|
|
||||||
-msse3
|
|
||||||
endif
|
|
||||||
|
|
||||||
# ANSI Mode
|
# ANSI Mode
|
||||||
#
|
#
|
||||||
# These flags cause GCC to predefine __STRICT_ANSI__. Please be warned
|
# These flags cause GCC to predefine __STRICT_ANSI__. Please be warned
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue