Skip to content

Commit

Permalink
fixed compiler check regex in install.libs.R (#2346)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Aug 21, 2019
1 parent 15d861c commit 5e60224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R-package/src/install.libs.R
Expand Up @@ -48,11 +48,11 @@ if (!use_precompile) {
# Using this kind-of complicated pattern to avoid matching to
# things like "pgcc"
using_gcc <- grepl(
pattern = '^gcc$|[/\\]+gcc|^gcc\\-[0-9]+$|[/\\]+gcc\\-[0-9]+$'
pattern = '^gcc$|[/\\]+gcc$|^gcc\\-[0-9]+$|[/\\]+gcc\\-[0-9]+$'
, x = Sys.getenv('CC', '')
)
using_gpp <- grepl(
pattern = '^g\\+\\+$|[/\\]+g\\+\\+|^g\\+\\+\\-[0-9]+$|[/\\]+g\\+\\+\\-[0-9]+$'
pattern = '^g\\+\\+$|[/\\]+g\\+\\+$|^g\\+\\+\\-[0-9]+$|[/\\]+g\\+\\+\\-[0-9]+$'
, x = Sys.getenv('CXX', '')
)
on_mac <- Sys.info()['sysname'] == 'Darwin'
Expand Down

0 comments on commit 5e60224

Please sign in to comment.