Skip to content

Commit

Permalink
utils::osVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 21, 2024
1 parent ed06f3f commit 10cdcb5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions inst/tools/build.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ if (.Platform$OS.type == "windows") {
.i <- "I"
} else {
.makevars <- file("src/Makevars", "wb")
if (file.exists("/etc/os-release")) {
.os <- readLines("/etc/os-release")
if (any(grepl("Pop!_OS", .os, fixed=TRUE))) {
.i <- "isystem"
} else {
.i <- "I"
}
if (any(grepl("Pop!_OS", utils::osVersion, fixed=TRUE))) {
.i <- "isystem"
} else {
.i <- "I"
}
Expand Down

0 comments on commit 10cdcb5

Please sign in to comment.