Commit 4093498a authored by bfreib's avatar bfreib
Browse files

Use -Wno-sign-conversion if g++ is secretly clang

parent 2423df4c
......@@ -77,6 +77,12 @@ FULL_SUBMITFILE = fullsubmit.tar.gz
#Default Flags
CXXFLAGS = -std=c++14 -Wconversion -Wall -Werror -Wextra -pedantic
# Disable -Wsign-conversion if using clang behind the scenes
CLANG_VERSION = $(shell { g++ --version ; } 2>&1 | grep clang)
ifneq "$(CLANG_VERSION)" ""
CXXFLAGS += -Wno-sign-conversion
endif
# make release - will compile "all" with $(CXXFLAGS) and the -O3 flag
# also defines NDEBUG so that asserts will not check
release: CXXFLAGS += -O3 -DNDEBUG
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment