Skip to content

Commit

Permalink
Hide errors in make
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed Jan 5, 2018
1 parent 5a45aeb commit 1f6c2a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -32,9 +32,9 @@ endif
ifeq ($(COMPILER),clang)
COMPILER_VERSION := $(shell $(CXX) --version | grep version | grep -o -m 1 "[0-9]\+\.[0-9]\+\.*[0-9]*" | head -n 1)
else
COMPILER_VERSION := $(shell $(CXX) -dumpfullversion)
COMPILER_VERSION := $(shell $(CXX) -dumpfullversion 2> /dev/null)
ifeq ($(COMPILER_VERSION),)
$(warning Falling back to -dumpversion as GCC did not support -dumpfullversion option)
$(info Falling back to -dumpversion as compiler did not support -dumpfullversion)
COMPILER_VERSION := $(shell $(CXX) -dumpversion)
endif
endif
Expand Down

0 comments on commit 1f6c2a7

Please sign in to comment.