DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit c7e4ac43f5228cee69b2453d95e56859d7912a50
parent 5f0d913a59121007b08fa21d0454b90906a8680d
Author: falkTX <falktx@falktx.com>
Date:   Fri, 14 Apr 2023 11:50:54 +0200

Alternative approach to detect makefile string escape by default

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
MMakefile.base.mk | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.base.mk b/Makefile.base.mk @@ -35,10 +35,10 @@ DPF_MAKEFILE_BASE_INCLUDED = true # --------------------------------------------------------------------------------------------------------------------- # Auto-detect target compiler if not defined -ifeq ($(shell echo '\#test' | grep -- '\#test'),\#test) -TARGET_COMPILER = $(shell echo '\#ifdef __clang__\nclang\n\#else\ngcc\n\#endif' | $(CC) -E -P -x c - 2>/dev/null) -else +ifeq ($(shell echo -e escaped-by-default | grep -- '-e escaped-by-default'),-e escaped-by-default) TARGET_COMPILER = $(shell echo '#ifdef __clang__\nclang\n#else\ngcc\n#endif' | $(CC) -E -P -x c - 2>/dev/null) +else +TARGET_COMPILER = $(shell echo '\#ifdef __clang__\nclang\n\#else\ngcc\n\#endif' | $(CC) -E -P -x c - 2>/dev/null) endif ifneq ($(CLANG),true)