Skip to content
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

Avoid defining the visibility attribute on Windows #1673

Merged

Conversation

DavisVaughan
Copy link
Member

@DavisVaughan DavisVaughan commented Aug 23, 2022

Closes #1672 , see that issue for my full description of the problem.

Confirmed that the warning in the windows-latest (release) GitHub Actions workflow of this cpp11 PR disappeared when I added a remote on this testthat PR r-lib/cpp11@d15902a

DavisVaughan added a commit to DavisVaughan/cpp11 that referenced this pull request Aug 23, 2022
@DavisVaughan DavisVaughan marked this pull request as ready for review August 23, 2022 21:44
@DavisVaughan DavisVaughan merged commit ad8b726 into r-lib:main Aug 24, 2022
@DavisVaughan DavisVaughan deleted the fix/windows-visibility-attribute branch August 24, 2022 00:17
DavisVaughan added a commit to r-lib/cpp11 that referenced this pull request Aug 25, 2022
… them (#279)

* Bump Ubuntu version from 18.04 to 20.04

* Fully update GitHub Actions workflows

* Avoid `R_compact_intrange()` in favor of `:`

Closes #280

* Avoid unused variable warning on Windows about `cpp11::preserved`

* Add a remote on r-lib/testthat#1673

* Add old archives to be able to install gcc 4.8

* Depend only on dev testthat now that the PR has been merged

* Set `CC` as well for `pkgbuild:::has_compiler_colored_diagnostics()`

Otherwise this will incorrectly return `TRUE` because it compiles a C program rather than a C++ one to check if color support is available, which adds the `-fdiagnostics-color=always` flag, but g++ 4.8 doesn't actually support that, so the compilation of the C++ code in the vignettes would fail

* NEWS bullet

* Pin to a specific testthat SHA

* Use `seq()` rather than `:` to generate the ALTREP compact-seq vector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C++ warning when testing with testthat
2 participants