[Rcpp-devel] Why would sourceCpp using both clang and gcc?
Thell Fowler
tbfowler4 at gmail.com
Sat Dec 1 00:16:16 CET 2012
Ubuntu precise with clang 3.3 and gcc 4.6.3 with R 2.15.2 and Rcpp 0.10.1
when calling sourceCpp gives output I'm not quite understanding...
>
sourceCpp("~/src/TestPackageDepends2/inst/examples/CallFunction.cpp",verbose=T,
rebuild=T)
Generated Rcpp module declaration:
--------------------------------------------------------
#include <Rcpp.h>
RCPP_MODULE(sourceCpp_12634) {
Rcpp::function("callFunction", &callFunction, Rcpp::List::create());
}
Building shared library
--------------------------------------------------------
DIR: /tmp/RtmpWMdYuo/sourcecpp_6275273d958b
/usr/lib/R/bin/R CMD SHLIB -o 'sourceCpp_12634.so' --preclean
'CallFunction.cpp'
"clang++" -I/usr/share/R/include -DNDEBUG
-I"/home/thell/R/library/Rcpp/include"
-I"/home/thell/R/library/TestPackageDepends/include" -fpic -O3 -pipe -g
-c CallFunction.cpp -o CallFunction.o
g++ -shared -o sourceCpp_12634.so CallFunction.o
-L/home/thell/R/library/Rcpp/lib -lRcpp
-Wl,-rpath,/home/thell/R/library/Rcpp/lib -L/usr/lib/R/lib -lR
What would make clang _not_ get used for both phases? My Makevars shows
CC="clang"
CXX="clang++"
CPP="clang-cpp"
--
Sincerely,
Thell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121130/50132660/attachment.html>
More information about the Rcpp-devel
mailing list