Skip to content

Commit

Permalink
Require C++17 on macOS
Browse files Browse the repository at this point in the history
To be able to install the package on older R versions,
e.g. R 3.6 to R 4.2, which default to C++14 or C++11.
This is surely ok for macOS systems since Big Sur.
  • Loading branch information
gaborcsardi committed Dec 4, 2023
1 parent ca48314 commit a8fa4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/config/configure.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ for (src_ in gle_cc) {
pkg_sources <- sort(dir("./src", ".cpp$|.c$"), decreasing = TRUE)

# compiler flags
cxxflags <- ""
cxxflags <- if (mac) "-std=gnu++17" else ""

fix_flags <- function(x) {
x <- gsub("-Wno-float-conversion ", "", x, fixed = TRUE)
Expand Down

0 comments on commit a8fa4d3

Please sign in to comment.