Skip to content

Commit

Permalink
added install.libs.R change
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Mar 24, 2020
1 parent ebe2d5a commit dfebd13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .ci/test_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ if ($env:TASK -eq "r-package"){
tzutil /s "GMT Standard Time"
[Void][System.IO.Directory]::CreateDirectory($env:R_LIB_PATH)

if ($env:COMPILER -eq "MINGW") {
Write-Output "Telling R to use MinGW"
$install_libs = $env:BUILD_SOURCESDIRECTORY\R-package\src\install.libs.R
((Get-Content -path $install_libs -Raw) -replace 'use_mingw <- FALSE','use_mingw <- TRUE') | Set-Content -Path $install_libs
}

# set up R if it doesn't exist yet
if (!(Get-Command R.exe -errorAction SilentlyContinue)) {

Expand Down
2 changes: 0 additions & 2 deletions R-package/.Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
\.o$
\.so$
\.dll$
\.dylib$
\.out$
\.bin$
^libs/.*$

# Code copied in at build time
^src/CMakeLists.txt$
Expand Down

0 comments on commit dfebd13

Please sign in to comment.