-
-
Notifications
You must be signed in to change notification settings - Fork 219
first crack at checking compiler versions from R #474
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
Conversation
currently limited to g++
int gccver(){
return( __GNUC__ * 10000 + \
__GNUC_MINOR__ * 100 + \
__GNUC_PATCHLEVEL__);
} Isn't this what you want? |
@JanMarvin: Thanks. In fact, @dcdillon made a similar point ("just compile We do actually have some tests in Rcpp already:
so I don't think the last word has been said. Right now it is more about helping users right at the start of a build process, ie in |
I'm going to merge this in, it is unlikely to cause harm as it isn't even exported yet. |
It would be cool to have a variation of this which could be called from Makevars and which throws an error when the minimum compiler version isn't met. The error would have a nice clear message indicating that the issue is the compiler version. |
Certainly. The bigger question really is whether we want
Making the error message nicer/more informative is easy. I was just happy when I realized that I could test |
I think that #2 (have folks add a line to Makevars) strikes the best On Sat, May 14, 2016 at 12:27 PM, Dirk Eddelbuettel <
|
How do you suggest to hook it in? It is not just an expansion as Or expand to something which gets called and remains silent on success but emits loud and clear error messages on failure? |
Yeah, I'd say silent on success and loud and clear error messages on On Sat, May 14, 2016 at 12:33 PM, Dirk Eddelbuettel <
|
I thought about that while going for a run and I am not so sure we can 'break' cleanly there. It is R calling make calling our (Rscript-based ?) snippet. I still think |
currently limited to g++
works reasonably well -- log from my Ubuntu 15.10 box below