From 7551076fc3ae2fa1941f23f806e0ca0b374ae504 Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Wed, 20 Nov 2024 20:01:09 -0600 Subject: [PATCH] Add apline linux fix --- inst/tools/workaround.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inst/tools/workaround.R b/inst/tools/workaround.R index 08109604..1d5cc319 100644 --- a/inst/tools/workaround.R +++ b/inst/tools/workaround.R @@ -9,7 +9,8 @@ for (f in c("src/RcppExports.cpp")) { } } -if (.Platform$OS.type == "windows" && !file.exists("src/Makevars.win")) { +if (.Platform$OS.type == "windows" && !file.exists("src/Makevars.win") + || (R.version$os == "linux-musl")) { writeLines(gsub("@ISYSTEM@", "I", gsub("@CXX14STD@", "CXX14STD = -std=c++1y", suppressWarnings(readLines("src/Makevars.in")))),