Skip to content

Commit

Permalink
Fix clang
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Sep 25, 2023
1 parent 85d072a commit a526613
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/winlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ if(!file.exists("../windows/protobuf/include/google/protobuf/descriptor.h")){
unlink("../windows", recursive = TRUE)
url <- if(grepl("aarch", R.version$platform)){
"https://github.com/r-windows/bundles/releases/download/protobuf-21.12/protobuf-21.12-clang-aarch64.tar.xz"
} else if(grepl("clang", Sys.getenv('R_COMPILED_BY'))){
"https://github.com/r-windows/bundles/releases/download/protobuf-21.12/protobuf-21.12-clang-x86_64.tar.xz"
} else if(getRversion() >= "4.3") {
# NB: does not work with rtools42
"https://github.com/r-windows/bundles/releases/download/protobuf-21.12/protobuf-21.12-ucrt-x86_64.tar.xz"
} else {
"https://github.com/rwinlib/protobuf/archive/v21.12.tar.gz"
Expand Down

0 comments on commit a526613

Please sign in to comment.