Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bfreib
eecs281_project0
Commits
4093498a
Commit
4093498a
authored
Apr 13, 2017
by
bfreib
Browse files
Use -Wno-sign-conversion if g++ is secretly clang
parent
2423df4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
4093498a
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment