Skip to content

Commit 480faba

Browse files
committed
Force the -DNDEBUG flag to satisfy R CMD check in R-2.14.0 and higher
1 parent 815e4b9 commit 480faba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Makevars

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

33
PKG_CXXFLAGS=-I../inst/include -DNDEBUG
4+
5+
## In practice the compiler flags show 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.
9+
410
PKG_LIBS=`$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
511

0 commit comments

Comments
 (0)