-
Notifications
You must be signed in to change notification settings - Fork 27
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
R CMD build ignores CXX_STD #83
Comments
Hi, I think this is probably a pkgbuild bug: r-lib/pkgbuild#46 @jimhester is there a manual workaround to add this flag, until pkgbuild is updated on CRAN? |
Ah cool, that helps! If there is no easy other option, maybe you can set |
There isn't a great workaround unfortunately, I am going to submit a new version of pkgbuild soon however, so this should be fairly transient |
@pat-s Maybe you can call |
This is fixed in pkgbuild I believe. |
While the As the However, creating one on appveyor or setting a pkg Spent hours already trying various options. I have no exp with CPP, just trying to get appveyor running again :/ Any help would be highly appreciated! Here is an exemplary failing build: https://ci.appveyor.com/project/mlr-org/mlr/builds/19737175 cc @jimhester |
Ok, got it working - issue posting helps ;) https://ci.appveyor.com/project/mlr-org/mlr/builds/19737512 Solution was to create a PKG_CPPFLAGS += -std=gnu99 |
Weird error, no clue if there is any relation to
rcmdcheck()
. However, I have no experience with setting compiler flags and I am wondering about the following behavior:On Appveyor, the package gets installed successfully when using
devtools::document()
with-std=gnu99
https://ci.appveyor.com/project/pat-s/mlr#L13401A few lines down in the
rcmdcheck()
process R CMD build is called and its not using the c++99 standard and fails therefore: https://ci.appveyor.com/project/pat-s/mlr#L13695I've even set
CXX_STD = CXX11
insrc/Makevars
but it seems to get ignored.Any help here would be highly appreciated!
The text was updated successfully, but these errors were encountered: