Skip to content

Commit

Permalink
More items to support CRAN submission without gnu make
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Mar 16, 2023
1 parent 88f5db6 commit 5c9ce59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cleanup
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
rm -f src/Makevars
rm -f config.*
rm -f src/Makevars.win
rm -f inst/include/*.gch
5 changes: 5 additions & 0 deletions cleanup.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

rm -f src/Makevars.win
rm -f src/Makevars
rm -f inst/include/*.gch
2 changes: 0 additions & 2 deletions inst/tools/workaround.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
.in)

if (.Platform$OS.type == "windows" && !file.exists("src/Makevars.win")) {
.in <- gsub("@CXX14STD@", "-std=c++1y", .in)
file.out <- file("src/Makevars.win", "wb")
writeLines(gsub("@ISYSTEM@", "I", .in),
file.out)
close(file.out)
} else {
.in <- gsub("@CXX14STD@", "-std=gnu++14", .in)
file.out <- file("src/Makevars", "wb")
writeLines(gsub("@ISYSTEM@", "isystem", .in),
file.out)
Expand Down

0 comments on commit 5c9ce59

Please sign in to comment.