Skip to content

Commit

Permalink
platform detection specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Mar 20, 2021
1 parent 3559193 commit 3da5429
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion higan-ui/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local := true
flags += -I. -I.. -I../higan

ifeq ($(local),true)
ifeq ($(findstring clang, $CXX),"")
ifeq ($(native),true)
flags += -march=native
endif
endif
Expand Down
5 changes: 5 additions & 0 deletions nall/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ flags.objc = -x objective-c -std=c11
flags.objcpp = -x objective-c++ -std=c++17
flags.deps = -MMD -MP -MF $(@:.o=.d)
native := true
# compiler detection
ifeq ($(compiler),)
ifeq ($(platform),windows)
Expand All @@ -67,6 +69,9 @@ ifeq ($(compiler),)
flags.cpp = -x c++ -std=gnu++17
else ifeq ($(platform),macos)
compiler := clang++
ifneq ($(findstring arm,$(shell uname -m)),"")
native := false
endif
else ifeq ($(platform),linux)
compiler := g++
else ifeq ($(platform),bsd)
Expand Down

0 comments on commit 3da5429

Please sign in to comment.