Skip to content

Commit 0fa85ae

Browse files
committed
Because of changes in R, -DNDEBUG is automatic.
One must override it with -UNDEBUG in the local ~/.R/Makevars to activate the debugging code.
1 parent 65e1c2d commit 0fa85ae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Makevars

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
## -*- mode: makefile; -*-
22

3-
PKG_CXXFLAGS=-I../inst/include -DNDEBUG
4-
5-
## In practice the compiler flags should be
6-
##PKG_CXXFLAGS=-I../inst/include
7-
## to enable error checking. However, checking for errors is flagged
8-
## in R CMD check as an undesirable practice.
3+
PKG_CXXFLAGS=-I../inst/include
94

105
PKG_LIBS=`$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

0 commit comments

Comments
 (0)