Skip to content

Commit 94e449b

Browse files
committed
1 parent 7da9889 commit 94e449b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/buildtools.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ sysdeps_info <- function(pkg){
271271
if(file.exists('/NEED_JAGS')){
272272
sysdeps <- rbind(sysdeps, maketools::package_sysdeps('rjags'))
273273
}
274+
if(any(grepl('protobuf', sysdeps$shlib))){
275+
protoc <- maketools:::paths_to_sysdep(Sys.which("protoc"))
276+
protoc$shlib <- NA
277+
sysdeps <- rbind(sysdeps, protoc)
278+
}
274279
df <- sysdeps[!is.na(sysdeps$package), c('shlib', 'package', 'headers', 'source', 'version')]
275280
if(is.data.frame(df) && nrow(df) > 0){
276281
df$name = NA_character_

0 commit comments

Comments
 (0)