aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPjotr Prins2018-10-09 07:25:04 +0000
committerPjotr Prins2018-10-09 07:25:04 +0000
commit93bdcb038b74b311d3a040f44606c25f5f9b20f9 (patch)
treefe13b9b57fa2aba49a4bd6f2cbbdcece3cc34a6b /Makefile
parent05d13dc9059636d9c4c8976bc469b6d1fc65d81a (diff)
downloadpangemma-93bdcb038b74b311d3a040f44606c25f5f9b20f9.tar.gz
clang++: disable Og switch for conda
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 25616c7..d3c218f 100644
--- a/Makefile
+++ b/Makefile
@@ -144,7 +144,11 @@ ifeq ($(CXX), clang++)
endif
ifdef DEBUG
- CPPFLAGS += -g -Og $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -isystem$(EIGEN_INCLUDE_PATH) -Icontrib/catch-1.9.7 -Isrc $(RPATH)
+ ifneq ($(CXX), clang++)
+ # Clang does not like this switch
+ CPPFLAGS += -Og
+ endif
+ CPPFLAGS += -g $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -isystem$(EIGEN_INCLUDE_PATH) -Icontrib/catch-1.9.7 -Isrc $(RPATH)
else
# release mode
CPPFLAGS += -DNDEBUG -O3 $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -isystem$(EIGEN_INCLUDE_PATH) -Icontrib/catch-1.9.7 -Isrc $(RPATH)