aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2023-11-20 13:23:37 +0300
committerdcherednik <dcherednik@ydb.tech>2023-11-20 14:34:20 +0300
commitffff7a34e41bf0dd7d5e0f3d78aeaebbf56200e6 (patch)
tree47612a33d11873a4ffb450f68a720efeb9b21cb4 /cmake
parent6d8d9a430dea2bfa0e6ce219a8e4f62f02fd2884 (diff)
downloadydb-ffff7a34e41bf0dd7d5e0f3d78aeaebbf56200e6.tar.gz
add darwin-arm64 CMakeLists
Diffstat (limited to 'cmake')
-rw-r--r--cmake/conan-profiles/macos.arm64.profile11
-rw-r--r--cmake/global_vars.cmake6
2 files changed, 17 insertions, 0 deletions
diff --git a/cmake/conan-profiles/macos.arm64.profile b/cmake/conan-profiles/macos.arm64.profile
new file mode 100644
index 0000000000..52ba46ab97
--- /dev/null
+++ b/cmake/conan-profiles/macos.arm64.profile
@@ -0,0 +1,11 @@
+include(default)
+[settings]
+arch=armv8
+build_type=Release
+compiler=clang
+compiler.libcxx=libc++
+compiler.version=14
+compiler.cppstd=20
+os=Macos
+[options]
+[env]
diff --git a/cmake/global_vars.cmake b/cmake/global_vars.cmake
index 8da5a30dbe..ebe4053b03 100644
--- a/cmake/global_vars.cmake
+++ b/cmake/global_vars.cmake
@@ -26,6 +26,12 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_
set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/)
endif()
+if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
+ set(BISON_FLAGS -v)
+ set(FBS_CPP_FLAGS --no-warnings --cpp --keep-prefix --gen-mutable --schema -b --yandex-maps-iter --gen-object-api --filename-suffix .fbs)
+ set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/)
+endif()
+
if(WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
set(YASM_FLAGS -f win64 -D WIN64 -D _x86_64_ -D_YASM_)
set(BISON_FLAGS -v)