Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

add -std=c++11 #216

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
matrix:
- TASK=lint LINT_LANG=cpp
- TASK=doc
- TASK=build CXX=g++
- TASK=build CXX=clang++

# dependent apt packages
addons:
Expand Down
4 changes: 3 additions & 1 deletion guide/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# set LD_LIBRARY_PATH
export CC = gcc
ifndef CXX
export CXX = g++
endif
export NVCC =nvcc
include config.mk
include ../make/mshadow.mk
export CFLAGS = -Wall -O3 -I../ $(MSHADOW_CFLAGS)
export CFLAGS = -std=c++11 -Wall -O3 -I../ $(MSHADOW_CFLAGS)
export LDFLAGS= -lm $(MSHADOW_LDFLAGS)
export NVCCFLAGS = -O3 --use_fast_math -ccbin $(CXX) $(MSHADOW_NVCCFLAGS)

Expand Down