Skip to content

Commit

Permalink
macOS Apple Silicon support (KhronosGroup#415)
Browse files Browse the repository at this point in the history
Caveats:

* Load tests apps only support Intel macs.
* SSE support is disabled in Universal binary builds due to absence of run-time detection.
  • Loading branch information
atteneder authored May 19, 2021
1 parent 3e98d51 commit db974eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ if(EMSCRIPTEN)
)
endif()

add_library( objUtil OBJECT
add_library( objUtil STATIC
utils/argparser.cpp
utils/argparser.h
utils/ktxapp.h
Expand Down
11 changes: 11 additions & 0 deletions cmake/cputypetest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,20 @@ armv8
#endif
#elif TARGET_OS_MAC
#if defined __x86_64__
#undef x86_64
x86_64
#elif defined __aarch64__
#undef arm64
arm64
#else
#error Unsupported platform
#endif
#else
#error Unsupported platform
#endif
Expand Down

0 comments on commit db974eb

Please sign in to comment.