Skip to content

Commit

Permalink
Update for alpine linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 21, 2024
1 parent 6e6c55d commit 15a681f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# rxode2ll (development version)
# rxode2ll 2.0.12

* Update compile flags for alpine linux (#7)

# rxode2ll 2.0.11

Expand Down
4 changes: 2 additions & 2 deletions inst/tools/workaround.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -25,4 +26,3 @@ if (.Platform$OS.type == "windows" && !file.exists("src/Makevars.win")) {
file.out)
close(file.out)
}

0 comments on commit 15a681f

Please sign in to comment.