Skip to content

Commit

Permalink
Disable cpufeatures on darwin/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mutability committed Dec 7, 2021
1 parent b645f7d commit fa8a066
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ ifeq ($(UNAME), Darwin)
COMPAT += compat/clock_nanosleep/clock_nanosleep.o
LIBS_USB += -lusb-1.0
LIBS_CURSES := -lncurses
CPUFEATURES ?= yes
# cpufeatures reportedly does not work (yet) on darwin arm64
ifneq $($(ARCH),arm64)
CPUFEATURES ?= yes
endif
endif

ifeq ($(UNAME), OpenBSD)
Expand Down

2 comments on commit fa8a066

@stevenjoezhang
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I encountered the following error when executing makefile

Makefile:66: *** invalid syntax in conditional.  Stop.

Is there an extra $?

@mutability
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed by #170

Please sign in to comment.