diff --git a/inst/tools/build.R b/inst/tools/build.R index 05e93b0..d19b22b 100644 --- a/inst/tools/build.R +++ b/inst/tools/build.R @@ -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" }