diff --git a/build/compiler.mk b/build/compiler.mk index c641d684c..22c9bd271 100644 --- a/build/compiler.mk +++ b/build/compiler.mk @@ -12,7 +12,8 @@ PKG = build/bootstrap/package.com MKDEPS = build/bootstrap/mkdeps.com ZIPOBJ = build/bootstrap/zipobj.com -ifeq ($(MODE), darwin) +ifeq ($(shell uname), Darwin) + TOOLPREFIX=/usr/local/bin/x86_64-linux-musl- AS = $(TOOLPREFIX)as CC = $(TOOLPREFIX)gcc diff --git a/build/config.mk b/build/config.mk index 427b8b8ce..17827a02e 100644 --- a/build/config.mk +++ b/build/config.mk @@ -308,23 +308,6 @@ OBJDUMP = llvm-objdump ADDR2LINE = llvm-addr2line 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 # # These flags cause GCC to predefine __STRICT_ANSI__. Please be warned