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

higan-ui: Don't use -march=native on ARM systems. #167

Merged
merged 1 commit into from
Mar 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion higan-ui/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ local := true
flags += -I. -I.. -I../higan

ifeq ($(local),true)
flags += -march=native
ifeq ($(findstring arm,$(shell uname -m)),arm)
# According to
# https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/compiler-flags-across-architectures-march-mtune-and-mcpu
# ... -mcpu=native is the ARM equivalent of -march=native on x86.
flags += -mcpu=native
else
# This is not portable, but since Windows doesn't provide a uname binary,
# it has to be the default.
flags += -march=native
endif
endif

nall.path := ../nall
Expand Down