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
3db7c1b7
Unverified
Commit
3db7c1b7
authored
Nov 06, 2020
by
James Lamb
Committed by
GitHub
Nov 05, 2020
Browse files
[R-package] remove Makefile hack in install.libs.R (#3528)
parent
35d6ba6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
R-package/src/install.libs.R
R-package/src/install.libs.R
+0
-23
No files found.
R-package/src/install.libs.R
View file @
3db7c1b7
...
...
@@ -216,29 +216,6 @@ if (!makefiles_already_generated) {
.run_shell_command
(
"cmake"
,
c
(
cmake_args
,
".."
))
}
# R CMD check complains about the .NOTPARALLEL directive created in the cmake
# Makefile. We don't need it here anyway since targets are built serially, so trying
# to remove it with this hack
generated_makefile
<-
file.path
(
build_dir
,
"Makefile"
)
if
(
file.exists
(
generated_makefile
))
{
makefile_txt
<-
readLines
(
con
=
generated_makefile
)
makefile_txt
<-
gsub
(
pattern
=
".*NOTPARALLEL.*"
,
replacement
=
""
,
x
=
makefile_txt
)
writeLines
(
text
=
makefile_txt
,
con
=
generated_makefile
,
sep
=
"\n"
)
}
# build the library
message
(
"Building lib_lightgbm"
)
.run_shell_command
(
build_cmd
,
build_args
)
...
...
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