Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
5e602244
Unverified
Commit
5e602244
authored
Aug 21, 2019
by
James Lamb
Committed by
GitHub
Aug 21, 2019
Browse files
fixed compiler check regex in install.libs.R (#2346)
parent
15d861ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
R-package/src/install.libs.R
R-package/src/install.libs.R
+2
-2
No files found.
R-package/src/install.libs.R
View file @
5e602244
...
@@ -48,11 +48,11 @@ if (!use_precompile) {
...
@@ -48,11 +48,11 @@ if (!use_precompile) {
# Using this kind-of complicated pattern to avoid matching to
# Using this kind-of complicated pattern to avoid matching to
# things like "pgcc"
# things like "pgcc"
using_gcc
<-
grepl
(
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'
,
''
)
,
x
=
Sys.getenv
(
'CC'
,
''
)
)
)
using_gpp
<-
grepl
(
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'
,
''
)
,
x
=
Sys.getenv
(
'CXX'
,
''
)
)
)
on_mac
<-
Sys.info
()[
'sysname'
]
==
'Darwin'
on_mac
<-
Sys.info
()[
'sysname'
]
==
'Darwin'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment