-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rcpp/fortran support? #9
Comments
Yeah that is something I want to add, I had a few links in #4 about it. Should be able to use https://gcc.gnu.org/onlinedocs/gcc/Gcov.html with a little work. |
I believe the same flags |
Looks like it's built into llvm: http://www.llvm.org/docs/CoverageMappingFormat.html |
@hadley what is the preferred way to pass compiler flags to old <- devtools:::set_envvar(c(CFLAGS = "-fprofile-arcs -ftest-coverage", CXXFLAGS = "-fprofile-arcs -ftest-coverage", FFLAGS = "-fprofile-arcs -ftest-coverage"), "prefix")
on.exit(devtools:::set_envvar(old), add = TRUE) before covr.R#L181 which does set Am I doing something obviously wrong, or is there an alternative method we need to use to force the profiling flags? |
the answer to the above is you need to use PKG_CFLAGS PKG_CXXFLAGS etc. I think this is also a bug in |
Do you have latest devtools? There was a problem previously - I'm pretty use |
It may be that the packages I have tested against all define |
preliminary support is now on master via 572d3da. Outstanding issues
|
So the only real issue I am running into here is forcing R to use |
From memory, I may have seen something lately in R NEWS changes (which I read daily via RSS) that they allow overriding now. Hitherto $RHOME/etc/Makeconf always won making this an issue. Not really sure if it changed, but may be worth checking with R-devel. |
Ok I will look around some more and see if I can find anything, thanks Dirk! On Thu, Jan 8, 2015 at 2:52 PM, Dirk Eddelbuettel notifications@github.com
|
As of 18d9210 this is now working locally by using a subprocess R session, but failing when trying to use |
Ok now seems to be working on everything but |
I see that this works for C/C++, but for some reason coveralls does not check the Fortran code in my package: https://coveralls.io/r/helske/KFAS I am new to both Travis and Coveralls so it might be just me. Any hints? |
Tested this also locally on Linux, I compiled with This seems to make the necessary gcov files but |
@helske this is because the function used to detect source files does not find extension Right now the only FORTRAN extension that is found is |
Thanks, should have figured that out by debugging the code a bit. I updated the |
Is there any chance you might be able to combine covr with an existing C++ code coverage tool in order to also give C++ code coverage stats?
The text was updated successfully, but these errors were encountered: