From ef314f1b417e92b2fd27e3ed7f504a711c49231b Mon Sep 17 00:00:00 2001 From: Craig Kolb Date: Wed, 4 May 2022 16:13:35 -0700 Subject: Enable building for aarch64 on MacOS (#2219) Co-authored-by: Theresa Foley <10618364+tangent-vector@users.noreply.github.com> Co-authored-by: jsmall-nvidia --- slang.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 0de215a33..dd078bd05 100644 --- a/slang.h +++ b/slang.h @@ -96,10 +96,13 @@ Operating system defines, see http://sourceforge.net/p/predef/wiki/OperatingSyst # define SLANG_ANDROID 1 # elif defined(__linux__) || defined(__CYGWIN__) /* note: __ANDROID__ implies __linux__ */ # define SLANG_LINUX 1 -# elif defined(__APPLE__) && (defined(__arm__) || defined(__arm64__)) -# define SLANG_IOS 1 # elif defined(__APPLE__) -# define SLANG_OSX 1 +# include "TargetConditionals.h" +# if TARGET_OS_MAC +# define SLANG_OSX 1 +# else +# define SLANG_IOS 1 +# endif # elif defined(__CELLOS_LV2__) # define SLANG_PS3 1 # elif defined(__ORBIS__) -- cgit v1.2.3