From b700b1cd0867c5b5332ed285379b75008b714c85 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 14 Aug 2024 21:23:43 +0200 Subject: [PATCH] fix tools compilation with clang --- client/Makefile | 2 +- tools/mfc/card_only/Makefile | 4 ++-- tools/mfc/card_reader/Makefile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/Makefile b/client/Makefile index 1b7090f68..9cd65bf83 100644 --- a/client/Makefile +++ b/client/Makefile @@ -394,7 +394,7 @@ ifeq ($(PYTHON_FOUND),1) endif ####################################################################################################### -# macOS doesn't like this params +# clang doesn't like this params #MYCFLAGS += --param max-completely-peeled-insns=1000 --param max-completely-peel-times=10000 MYCFLAGS += -O3 diff --git a/tools/mfc/card_only/Makefile b/tools/mfc/card_only/Makefile index 9d357df55..fa705e209 100644 --- a/tools/mfc/card_only/Makefile +++ b/tools/mfc/card_only/Makefile @@ -23,8 +23,8 @@ ifneq (,$(findstring MINGW,$(platform))) CFLAGS += -D_ISOC99_SOURCE endif -# macOS doesn't like these compiler params -ifneq ($(platform),Darwin) +# clang doesn't like these compiler params +ifneq ($(DETECTED_COMPILER), clang) MYCFLAGS += --param max-completely-peeled-insns=1000 --param max-completely-peel-times=10000 endif diff --git a/tools/mfc/card_reader/Makefile b/tools/mfc/card_reader/Makefile index eaadd4e1a..b0ac20879 100644 --- a/tools/mfc/card_reader/Makefile +++ b/tools/mfc/card_reader/Makefile @@ -21,8 +21,8 @@ ifneq (,$(findstring MINGW,$(platform))) CFLAGS += -D_ISOC99_SOURCE endif -# macOS doesn't like these compiler params -ifneq ($(platform),Darwin) +# clang doesn't like these compiler params +ifneq ($(DETECTED_COMPILER), clang) MYCFLAGS += --param max-completely-peeled-insns=1000 --param max-completely-peel-times=10000 endif