Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

new C++2a plugin for g++ 8 or later#927

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eddelbuettel merged 2 commits intomasterfromfeature/c++2a_plugin
Dec 2, 2018
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletionsChangeLog
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
2018-12-01 Dirk Eddelbuettel <edd@debian.org>

* R/Attributes.R: Added new 'c++2a' plugin for '-std=c++2a'
compilation standard supported by g++ 8 or later

2018-11-11 Dirk Eddelbuettel <edd@debian.org>

* inst/include/Rcpp/vector/Subsetter.h (check_indices): More
Expand Down
10 changes: 8 additions & 2 deletionsR/Attributes.R
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@

# Copyright (C) 2012 -2017 JJ Allaire, Dirk Eddelbuettel and Romain Francois
# Copyright (C) 2012 -2018 JJ Allaire, Dirk Eddelbuettel and Romain Francois
#
# This file is part of Rcpp.
#
Expand DownExpand Up@@ -469,7 +469,7 @@ compileAttributes <- function(pkgdir = ".", verbose = getOption("verbose")) {
# setup plugins environment
.plugins <- new.env()

# built-in C++98 plugin
# built-in C++98 plugin
.plugins[["cpp98"]] <- function() {
if (getRversion() >= "3.4") # with recent R versions, R can decide
list(env = list(USE_CXX98 = "yes"))
Expand DownExpand Up@@ -523,6 +523,12 @@ compileAttributes <- function(pkgdir = ".", verbose = getOption("verbose")) {
list(env = list(PKG_CXXFLAGS ="-std=c++1z"))
}

## built-in C++2a plugin for g++ 8 and later
## cf https://gcc.gnu.org/projects/cxx-status.html as of Dec 2018
.plugins[["cpp2a"]] <- function() {
list(env = list(PKG_CXXFLAGS ="-std=c++2a"))
}

## built-in OpenMP plugin
.plugins[["openmp"]] <- function() {
list(env = list(PKG_CXXFLAGS="-fopenmp",
Expand Down
6 changes: 6 additions & 0 deletionsinst/NEWS.Rd
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,6 +8,12 @@
\itemize{
\item Subsetting is no longer limited by an integer range (William
Nolan in \ghpr{920} fixing \ghit{919}).
\item Error messages from subsetting are now more informative
(Qiang and Dirk).
}
\item Changes in Rcpp Attributes:
\itemize{
\item A new plugin was added for C++20 (Dirk in \ghpr{927})
}
}
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp