[Rcpp-commits] r1421 - pkg/Rcpp/inst/examples/ConvolveBenchmarks
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Jun 4 16:36:12 CEST 2010
Author: romain
Date: 2010-06-04 16:36:12 +0200 (Fri, 04 Jun 2010)
New Revision: 1421
Modified:
pkg/Rcpp/inst/examples/ConvolveBenchmarks/buildAndRun.sh
Log:
switch to Rscript as I dont have little t (yet) on OSX
Modified: pkg/Rcpp/inst/examples/ConvolveBenchmarks/buildAndRun.sh
===================================================================
--- pkg/Rcpp/inst/examples/ConvolveBenchmarks/buildAndRun.sh 2010-06-04 14:31:44 UTC (rev 1420)
+++ pkg/Rcpp/inst/examples/ConvolveBenchmarks/buildAndRun.sh 2010-06-04 14:36:12 UTC (rev 1421)
@@ -1,13 +1,16 @@
#!/bin/bash
+rm *.o
+rm *.so
+
# build the shared library for the C variant
R CMD SHLIB convolve2_c.c
R CMD SHLIB convolve7_c.c
# build the shared library for the C++ variant
# we have to let R know where the Rcpp header and library are
-export PKG_CPPFLAGS=`r -e "Rcpp:::CxxFlags()"`
-export PKG_LIBS=`r -e "Rcpp:::LdFlags()"`
+export PKG_CPPFLAGS=`Rscript -e "Rcpp:::CxxFlags()"`
+export PKG_LIBS=`Rscript -e "Rcpp:::LdFlags()"`
R CMD SHLIB convolve2_cpp.cpp
R CMD SHLIB convolve3_cpp.cpp
R CMD SHLIB convolve4_cpp.cpp
More information about the Rcpp-commits
mailing list