Skip to content

Commit 99710b8

Browse files
no more needed to deal with LdFlags
1 parent 54f862c commit 99710b8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

R/Attributes.R

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -581,14 +581,7 @@ sourceCppFunction <- function(func, isVoid, dll, symbol) {
581581
# if there is no buildEnv from a plugin then use the Rcpp plugin
582582
if (length(buildEnv) == 0) {
583583
buildEnv <- inlineCxxPlugin()$env
584-
} else {
585-
# we are using a plugin -- confirm that the plugin includes the Rcpp
586-
# PKG_LIBS and if it doesn't then add them
587-
pkgLibs <- buildEnv$PKG_LIBS
588-
rcppLibs <- Rcpp::RcppLdFlags()
589-
if (is.null(pkgLibs) || !grepl(rcppLibs, pkgLibs, fixed = TRUE))
590-
buildEnv$PKG_LIBS <- paste(pkgLibs, rcppLibs)
591-
}
584+
}
592585

593586
# set CLINK_CPPFLAGS based on the LinkingTo dependencies
594587
buildEnv$CLINK_CPPFLAGS <- .buildClinkCppFlags(linkingToPackages)

0 commit comments

Comments
 (0)