issues
search
critter-mj
/
akochan
Artificial Intelligence for Japanese mahjong
Other
244
stars
38
forks
source link
Compatibility and performance fixes for Makefile
#19
Closed
hguandl
closed
2 years ago
hguandl
commented
2 years ago
Performance improvement (d79b1f9c40271c767528d7ad38a5f15d9e0d71df)
Use simple assignment (
:=
instead of
=
) to avoid repeated shell commands.
About how it works:
Makefile Optimization: $(shell) and := go Together
.
CPU flags on Apple Silicon (249ad997cf1448eafe59d305eb91f6225b4c4ceb)
-march=native
does not work on Apple M1; use
-mcpu=apple-m1
instead.
Reference:
Why does march=native not work on Apple M1?
.
My device is an MacBook Pro 13'' with Apple M1. This fix worked for me.
Performance improvement (d79b1f9c40271c767528d7ad38a5f15d9e0d71df)
:=
instead of=
) to avoid repeated shell commands.CPU flags on Apple Silicon (249ad997cf1448eafe59d305eb91f6225b4c4ceb)
-march=native
does not work on Apple M1; use-mcpu=apple-m1
instead.