Commit 02311bc9 authored by Waleed Khan's avatar Waleed Khan
Browse files

Update to GCC 5.1.0

parent 3c989a70
......@@ -40,10 +40,10 @@
# Version 1 - 2014-09-21, David Snider (sniderdj@umich.edu)
# Vertion 0 - ????-??-??, Matt Diffenderfer (mjdiffy@umich.edu)
# enables c++11 on CAEN
PATH := /usr/um/gcc-4.8.3/bin:$(PATH)
LD_LIBRARY_PATH := /usr/um/gcc-4.8.3/lib64
LD_RUN_PATH := /usr/um/gcc-4.8.3/lib64
# enables c++14 on CAEN
PATH := /usr/um/gcc-5.1.0/bin:$(PATH)
LD_LIBRARY_PATH := /usr/um/gcc-5.1.0/lib64
LD_RUN_PATH := /usr/um/gcc-5.1.0/lib64
# TODO
# Change EXECUTABLE to match the command name given in the project spec.
......@@ -75,7 +75,7 @@ PARTIAL_SUBMITFILE = partialsubmit.tar.gz
FULL_SUBMITFILE = fullsubmit.tar.gz
#Default Flags
CXXFLAGS = -std=c++11 -Wall -Werror -Wextra -pedantic
CXXFLAGS = -std=c++14 -Wall -Werror -Wextra -pedantic
# make release - will compile "all" with $(CXXFLAGS) and the -O3 flag
# also defines NDEBUG so that asserts will not check
......@@ -84,9 +84,17 @@ release: all
# make debug - will compile "all" with $(CXXFLAGS) and the -g flag
# also defines DEBUG so that "#ifdef DEBUG /*...*/ #endif" works
debug: CXXFLAGS += -g3 -DDEBUG
debug: CXXFLAGS += -g3 -DDEBUG $(UBFLAGS)
debug: clean all
# make ubdebug - will compile "debug" using special flags to carry out checks
# for undefined behavior at runtime
# you may also need to run `module load gcc/5.1.0` before
# running your program on CAEN
UBFLAGS = -fsanitize=undefined -fsanitize=address -fno-sanitize-recover
ubdebug: CXXFLAGS += $(UBFLAGS)
ubdebug: debug
# make profile - will compile "all" with $(CXXFLAGS) and the -pg flag
profile: CXXFLAGS += -pg
profile: clean all
......@@ -213,6 +221,6 @@ project0.o: project0.cpp class.h
######################
# these targets do not create any files
.PHONY: all release debug profile clean alltests partialsubmit fullsubmit help
.PHONY: all release debug ubdebug profile clean alltests partialsubmit fullsubmit help
# disable built-in rules
.SUFFIXES:
\ No newline at end of file
.SUFFIXES:
Markdown is supported
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