1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +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:
Sebastian Buchwald 2023-03-11 22:08:35 +01:00 committed by Joost VandeVondele
parent 55896a1384
commit d1e17989b5

View file

@ -584,7 +584,10 @@ ifeq ($(optimize),yes)
endif
ifeq ($(comp),clang)
CXXFLAGS += -fexperimental-new-pass-manager
clangmajorversion = $(shell $(CXX) -dumpversion 2>/dev/null | cut -f1 -d.)
ifeq ($(shell expr $(clangmajorversion) \< 16),1)
CXXFLAGS += -fexperimental-new-pass-manager
endif
endif
endif