Replace CUSTOM_CXX env var to specify non-default C++ compiler.
authorJeff Donahue <jeff.donahue@gmail.com>
Mon, 14 Jul 2014 20:43:08 +0000 (13:43 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Mon, 14 Jul 2014 20:43:08 +0000 (13:43 -0700)
Makefile
Makefile.config.example

index ad3c1bb..00f67c9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -215,6 +215,11 @@ ifeq ($(OSX), 1)
        endif
 endif
 
+# Custom compiler
+ifdef CUSTOM_CXX
+       CXX := $(CUSTOM_CXX)
+endif
+
 # Debugging
 ifeq ($(DEBUG), 1)
        COMMON_FLAGS := -DDEBUG -g -O0
index 81effb4..17c9001 100644 (file)
@@ -3,7 +3,7 @@
 
 # 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++
-# CXX := g++
+# CUSTOM_CXX := g++
 
 # CUDA directory contains bin/ and lib/ directories that we need.
 CUDA_DIR := /usr/local/cuda