From 2d5a427991a25d3941a0bf68afc262d7f523f115 Mon Sep 17 00:00:00 2001 From: Alexander Frick Date: Sat, 27 Jan 2024 04:21:51 -0600 Subject: [PATCH] fix mac x64 --- other/AVX2/build/config/compiler/BUILD.gn | 18 ++++++++++++++++++ setup.sh | 1 + 2 files changed, 19 insertions(+) diff --git a/other/AVX2/build/config/compiler/BUILD.gn b/other/AVX2/build/config/compiler/BUILD.gn index f2492be7..b01cbe0d 100644 --- a/other/AVX2/build/config/compiler/BUILD.gn +++ b/other/AVX2/build/config/compiler/BUILD.gn @@ -2500,6 +2500,24 @@ if (is_win) { common_optimize_on_cflags += [ "-fno-math-errno" ] } +config("march_crc") { + if (!is_win || is_clang) { + cflags = [ "-march=armv8-a+crc" ] + } +} + +config("march_dotprod") { + if (!is_win || is_clang) { + cflags = [ "-march=armv8.2-a+dotprod" ] + } +} + +config("march_i8mm") { + if (!is_win || is_clang) { + cflags = [ "-march=armv8.2-a+i8mm" ] + } +} + config("default_stack_frames") { if (!is_win) { if (enable_frame_pointers) { diff --git a/setup.sh b/setup.sh index dab9593b..9067417f 100755 --- a/setup.sh +++ b/setup.sh @@ -82,6 +82,7 @@ copyMacOS () { printf "\n" && printf "${YEL}Copying files for MacOS...${c0}\n" && cp -r -v arm/mac_arm.gni ${CR_SRC_DIR}/build/config/arm.gni && + cp -r -v other/AVX2/build/config/compiler/BUILD.gn ${CR_SRC_DIR}/build/config/compiler/ && cp -r -v arm/third_party/* ${CR_SRC_DIR}/third_party/ && printf "\n" }