fix mac x64

This commit is contained in:
Alexander Frick 2024-01-27 04:21:51 -06:00
parent 6f3b4741cc
commit 2d5a427991
2 changed files with 19 additions and 0 deletions

View file

@ -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) {

View file

@ -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"
}