diff --git a/nall/GNUmakefile b/nall/GNUmakefile index 7417a7033e..4b501650fd 100644 --- a/nall/GNUmakefile +++ b/nall/GNUmakefile @@ -129,6 +129,15 @@ else flags.deps = -MMD -MP -MF $(@:.o=.d) endif +# architecture detection +ifeq ($(arch),) + ifneq ($(machine),) + arch := $(machine) + else + $(error unknown arch, please specify manually.) + endif +endif + # explicit architecture flags to allow for cross-compilation on macos ifeq ($(platform),macos) ifeq ($(arch),amd64) @@ -143,15 +152,6 @@ ifeq ($(platform),macos) endif endif -# architecture detection -ifeq ($(arch),) - ifneq ($(machine),) - arch := $(machine) - else - $(error unknown arch, please specify manually.) - endif -endif - # build optimization levels ifeq ($(build),debug) symbols = true