Browse Source

Fix target compiler detection

pull/397/head
Patrick Desaulniers GitHub 2 years ago
parent
commit
ed2a14e198
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      Makefile.base.mk

+ 1
- 5
Makefile.base.mk View File

@@ -35,11 +35,7 @@ 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
TARGET_COMPILER = $(shell echo '#ifdef __clang__\nclang\n#else\ngcc\n#endif' | $(CC) -E -P -x c - 2>/dev/null)
endif
TARGET_COMPILER = $(shell printf '#ifdef __clang__\nclang\n#else\ngcc\n#endif' | $(CC) -E -P -x c - 2>/dev/null)

ifneq ($(CLANG),true)
ifneq ($(GCC),true)


Loading…
Cancel
Save