Skip to content
Snippets Groups Projects
Commit 05bb17d5 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use `tail -n 1` intead of `grep -v '#'`

Apple GNU make treats unescaped # in variables as starting a comment.
But GNU grep >= v3.8 will spew a warning with an extra backslash there.
parent 33386cb7
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ endif
# Compiler-specific options
CFLAGS += -MMD -MP
CC ?= gcc
CCPRE ?= ${shell if [ `echo __clang__ | $(CC) -E - | grep -v '^#'` != __clang__ ] ; then echo clang ; elif [ `echo __INTEL_COMPILER | $(CC) -E - | grep -v '^#'` != __INTEL_COMPILER ] ; then echo icc ; else echo gcc ; fi}
CCPRE ?= ${shell if [ `echo __clang__ | $(CC) -E - | tail -n 1` != __clang__ ] ; then echo clang ; elif [ `echo __INTEL_COMPILER | $(CC) -E - | tail -n 1` != __INTEL_COMPILER ] ; then echo icc ; else echo gcc ; fi}
ifeq ($(CCPRE),clang)
ifeq ($(CC),cc)
CXX := c++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment