Skip to content

Commit

Permalink
Only mention that 'compiler' will be loaded from enabling JIT, if not…
Browse files Browse the repository at this point in the history
… already loaded
  • Loading branch information
HenrikBengtsson committed Oct 20, 2023
1 parent 1470e97 commit 74f0da2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: startup
Version: 0.20.0-9003
Version: 0.20.0-9004
Title: Friendly R Startup Configuration
Depends: R (>= 2.14.0)
Suggests: commonmark, tools, tcltk
Expand Down
8 changes: 6 additions & 2 deletions R/startup.R
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,16 @@ startup <- function(sibling = FALSE, all = FALSE,
logf(" - R_ENABLE_JIT: %s", value)
if (is.na(jit)) {
logf(" - JIT compiler enabled by default")
logf(" - The 'compiler' package will be loaded")
if (!"compiler" %in% loadedNamespaces()) {
logf(" - The 'compiler' package will be loaded")
}
} else {
value <- suppressWarnings(as.integer(jit))
if (!is.na(value) && value > 0L) {
logf(" - JIT compiler enabled at level %d", jit)
logf(" - The 'compiler' package will be loaded")
if (!"compiler" %in% loadedNamespaces()) {
logf(" - The 'compiler' package will be loaded")
}
} else {
logf(" - JIT compiler disabled")
}
Expand Down

0 comments on commit 74f0da2

Please sign in to comment.