]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Export makefile ARCH in binary
[stockfish] / src / Makefile
index bf483f8c77e2a7c16666428bb4895f7c4ee968e6..e7c06389bdd5d57917c0fac5a34c7951a50ddfb4 100644 (file)
@@ -715,6 +715,11 @@ ifneq ($(GIT_DATE), )
        CXXFLAGS += -DGIT_DATE=$(GIT_DATE)
 endif
 
+### 3.7.3 Try to include architecture
+ifneq ($(ARCH), )
+       CXXFLAGS += -DARCH=$(ARCH)
+endif
+
 ### 3.8 Link Time Optimization
 ### This is a mix of compile and link time options because the lto link phase
 ### needs access to the optimization flags.