diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index de66e1cc0734..7e3854a07643 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -224,7 +224,6 @@ ifeq ($(CC_NO_CLANG), 0) PERL_EMBED_LDOPTS := $(filter-out -specs=%,$(PERL_EMBED_LDOPTS)) PERL_EMBED_CCOPTS := $(filter-out -flto=auto -ffat-lto-objects, $(PERL_EMBED_CCOPTS)) PERL_EMBED_CCOPTS := $(filter-out -specs=%,$(PERL_EMBED_CCOPTS)) - FLAGS_PERL_EMBED += -Wno-compound-token-split-by-macro endif $(OUTPUT)test-libperl.bin: diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 312a7a5906ee..913bf509bd17 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -790,9 +790,6 @@ else LDFLAGS += $(PERL_EMBED_LDFLAGS) EXTLIBS += $(PERL_EMBED_LIBADD) CFLAGS += -DHAVE_LIBPERL_SUPPORT - ifeq ($(CC_NO_CLANG), 0) - CFLAGS += -Wno-compound-token-split-by-macro - endif $(call detected,CONFIG_LIBPERL) endif endif