From 23e6dfe1850a29e38b887d4c4c87a66e8edb3cc7 Mon Sep 17 00:00:00 2001 From: Maksim Gamarnik Date: Sun, 11 Dec 2016 23:05:28 +0200 Subject: [PATCH] Fix compilation for macOS and iOS --- src/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Makefile b/src/Makefile index 4e479ae5..cf1c1750 100644 --- a/src/Makefile +++ b/src/Makefile @@ -166,6 +166,10 @@ else HOST_SYS= Windows HOST_MSYS= cygwin endif + # Use Clang for macOS host. + ifeq (Darwin,$(HOST_SYS)) + DEFAULT_CC= clang + endif endif ##############################################################################