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