Skip to content

Commit

Permalink
customize compiler setting in Makefile.config
Browse files Browse the repository at this point in the history
in case of issues with default compilers or exotic platforms.
  • Loading branch information
shelhamer committed Jul 4, 2014
1 parent e09e256 commit 18a4e2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ ifeq ($(OSX), 1)
endif
endif

# Custom compiler
ifdef CUSTOM_CXX
CXX := $(CUSTOM_CXX)
endif

# Debugging
ifeq ($(DEBUG), 1)
COMMON_FLAGS := -DDEBUG -g -O0
Expand Down
4 changes: 4 additions & 0 deletions Makefile.config.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!

# To customize your choice of compiler, uncomment and set the following.
# N.B. the default for Linux is g++ and the default for OSX is clang++
# CUSTOM_CXX := g++

# CUDA directory contains bin/ and lib/ directories that we need.
CUDA_DIR := /usr/local/cuda
# On Ubuntu 14.04, if cuda tools are installed via
Expand Down

0 comments on commit 18a4e2d

Please sign in to comment.