From 15a681f711a1556c09c243e91ad4214a37421156 Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Wed, 20 Nov 2024 19:51:50 -0600 Subject: [PATCH] Update for alpine linux --- DESCRIPTION | 2 +- NEWS.md | 4 +++- inst/tools/workaround.R | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d5c4848..f8da7c0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: rxode2ll -Version: 2.0.11.9000 +Version: 2.0.12 Title: Log-Likelihood Functions for 'rxode2' Authors@R: c( person("Matthew L.","Fidler", diff --git a/NEWS.md b/NEWS.md index 2067ef4..c658183 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,6 @@ -# rxode2ll (development version) +# rxode2ll 2.0.12 + +* Update compile flags for alpine linux (#7) # rxode2ll 2.0.11 diff --git a/inst/tools/workaround.R b/inst/tools/workaround.R index ed779f8..b783d9d 100644 --- a/inst/tools/workaround.R +++ b/inst/tools/workaround.R @@ -14,7 +14,8 @@ .in <- gsub("@SL@", paste(capture.output(StanHeaders:::LdFlags()), capture.output(RcppParallel:::RcppParallelLibs())), #nolint .in) -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")) { file.out <- file("src/Makevars.win", "wb") writeLines(gsub("@ISYSTEM@", "I", .in), file.out) @@ -25,4 +26,3 @@ if (.Platform$OS.type == "windows" && !file.exists("src/Makevars.win")) { file.out) close(file.out) } -