Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bridge add apple m1(arm64) support #767

Merged
merged 2 commits into from
Oct 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
execute_process(
COMMAND bash "-c" "clang --version | xargs | awk '{print $7}' | cut -c1-5"
OUTPUT_VARIABLE CLANG_ARCH
)
## Set univeral archs for Apple arm64 processors
if (${CLANG_ARCH} MATCHES "arm64")
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
endif()
endif()

if (${ENABLE_PROFILE})
add_definitions(-DENABLE_PROFILE=1)
else ()
Expand Down