Skip to content

Commit

Permalink
Define flags for C++14+
Browse files Browse the repository at this point in the history
Fixes #369
  • Loading branch information
jimhester committed Jun 10, 2019
1 parent 3f158c6 commit e344676
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
@@ -1,5 +1,7 @@
# Development

* Define the necessary coverage flags for C++14, C++17 and C++20 (#369).

* Cobertura coverage-04.dtd support (@samssann, #337).
* `codecov` will look at `codecov.yml` for token if `CODECOV_TOKEN` envvar is not set (@MishaCivey #349).
* Some previously-ignored internal objects (like [R6](https://github.com/r-lib/R6) class generators prefixed with `.`) are now considered relevant for coverage (@jameslamb, #356).
Expand Down
7 changes: 7 additions & 0 deletions R/zzz.R
Expand Up @@ -11,6 +11,9 @@
CXXFLAGS = "-O0 --coverage",
CXX1XFLAGS = "-O0 --coverage",
CXX11FLAGS = "-O0 --coverage",
CXX14FLAGS = "-O0 --coverage",
CXX17FLAGS = "-O0 --coverage",
CXX20FLAGS = "-O0 --coverage",

FFLAGS = "-O0 --coverage",
FCFLAGS = "-O0 --coverage",
Expand All @@ -29,6 +32,10 @@
covr.icov_flags = c(CFLAGS = icov_flag,
CXXFLAGS = icov_flag,
CXX1XFLAGS = icov_flag,
CXX11FLAGS = icov_flag,
CXX14FLAGS = icov_flag,
CXX17FLAGS = icov_flag,
CXX20FLAGS = icov_flag,

FFLAGS = icov_flag,
FCFLAGS = icov_flag,
Expand Down

0 comments on commit e344676

Please sign in to comment.