mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
Fix Makefile for clang 16
The clang 16 release will remove the -fexperimental-new-pass-manager
flag (see 69b2b7282e
).
Thus, the commit adapts the Makefile to use this flag only for older
clang versions.
closes https://github.com/official-stockfish/Stockfish/pull/4437
No functional change
This commit is contained in:
parent
55896a1384
commit
d1e17989b5
1 changed files with 4 additions and 1 deletions
|
@ -584,9 +584,12 @@ ifeq ($(optimize),yes)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(comp),clang)
|
ifeq ($(comp),clang)
|
||||||
|
clangmajorversion = $(shell $(CXX) -dumpversion 2>/dev/null | cut -f1 -d.)
|
||||||
|
ifeq ($(shell expr $(clangmajorversion) \< 16),1)
|
||||||
CXXFLAGS += -fexperimental-new-pass-manager
|
CXXFLAGS += -fexperimental-new-pass-manager
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
### 3.4 Bits
|
### 3.4 Bits
|
||||||
ifeq ($(bits),64)
|
ifeq ($(bits),64)
|
||||||
|
|
Loading…
Add table
Reference in a new issue