diff --git a/Makefile b/Makefile index 1c1199932..049c4d6e6 100644 --- a/Makefile +++ b/Makefile @@ -15,19 +15,10 @@ endif buildtype := $(shell echo "$(BUILDTYPE)" | tr "[A-Z]" "[a-z]") -ifeq ($(shell uname -s), Darwin) - HOST_PLATFORM = macos - HOST_PLATFORM_VERSION = $(shell uname -m) - export NINJA = platform/macos/ninja - export JOBS ?= $(shell sysctl -n hw.ncpu) -else ifeq ($(shell uname -s), Linux) - HOST_PLATFORM = linux - HOST_PLATFORM_VERSION = $(shell uname -m) - export NINJA = platform/linux/ninja - export JOBS ?= $(shell grep --count processor /proc/cpuinfo) -else - $(error Cannot determine host platform) -endif +HOST_PLATFORM = linux +HOST_PLATFORM_VERSION = $(shell uname -m) +export NINJA = platform/macos/ninja +export JOBS ?= $(shell sysctl -n hw.ncpu) ifeq ($(MASON_PLATFORM),) BUILD_PLATFORM = $(HOST_PLATFORM) @@ -369,7 +360,7 @@ endif ifeq ($(HOST_PLATFORM), linux) -export PATH := $(shell pwd)/platform/linux:$(PATH) +export PATH := $(shell pwd)/platform/macos:$(PATH) export LINUX_OUTPUT_PATH = build/linux-$(shell uname -m)/$(BUILDTYPE) LINUX_BUILD = $(LINUX_OUTPUT_PATH)/build.ninja