mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Export makefile ARCH in binary
Example of the `./stockfish compiler` command: Compiled by : g++ (GNUC) 10.3.0 on Apple Compilation architecture : x86-64-bmi2 Compilation settings : 64bit BMI2 AVX2 SSE41 SSSE3 SSE2 POPCNT Compiler __VERSION__ macro : 10.3.0 closes https://github.com/official-stockfish/Stockfish/pull/4789 no functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
708319a433
commit
e594aa7429
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user