diff options
| author | Craig Kolb <craig.kolb@gmail.com> | 2022-05-04 16:13:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-04 19:13:35 -0400 |
| commit | ef314f1b417e92b2fd27e3ed7f504a711c49231b (patch) | |
| tree | f6c6a806c91ba9ce3cdf0fd60f7a9f53a7db2ea4 | |
| parent | b9c11260e07b9e4bac6518a1f4eeaf241ac7e397 (diff) | |
Enable building for aarch64 on MacOS (#2219)
Co-authored-by: Theresa Foley <10618364+tangent-vector@users.noreply.github.com>
Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
| -rw-r--r-- | premake5.lua | 6 | ||||
| -rw-r--r-- | slang.h | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/premake5.lua b/premake5.lua index 48008025b..d59c03f90 100644 --- a/premake5.lua +++ b/premake5.lua @@ -277,10 +277,10 @@ newoption { -- Makes all symbols hidden by default unless explicitly 'exported' buildoptions { "-fvisibility=hidden" } -- Warnings - buildoptions { "-Wno-unused-parameter", "-Wno-type-limits", "-Wno-sign-compare", "-Wno-unused-variable", "-Wno-reorder", "-Wno-switch", "-Wno-return-type", "-Wno-unused-local-typedefs", "-Wno-parentheses", "-Wno-ignored-optimization-argument", "-Wno-unknown-warning-option", "-Wno-class-memaccess"} + buildoptions { "-Wno-unused-but-set-variable", "-Wno-unused-parameter", "-Wno-type-limits", "-Wno-sign-compare", "-Wno-unused-variable", "-Wno-reorder", "-Wno-switch", "-Wno-return-type", "-Wno-unused-local-typedefs", "-Wno-parentheses", "-Wno-ignored-optimization-argument", "-Wno-unknown-warning-option", "-Wno-class-memaccess"} filter { "toolset:gcc*"} - buildoptions { "-Wno-unused-but-set-variable", "-Wno-implicit-fallthrough" } + buildoptions { "-Wno-implicit-fallthrough" } filter { "toolset:clang" } buildoptions { "-Wno-deprecated-register", "-Wno-tautological-compare", "-Wno-missing-braces", "-Wno-undefined-var-template", "-Wno-unused-function", "-Wno-return-std-move"} @@ -1542,4 +1542,4 @@ standardProject("slang-rt", "source/slang-rt") -- end -
\ No newline at end of file + @@ -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__) |
