Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7d4600

Browse filesBrowse files
committed
try cleaning up build dir after we're done
1 parent c321d57 commit f7d4600
Copy full SHA for f7d4600

File tree

Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed

‎src/install.libs.R

Copy file name to clipboardExpand all lines: src/install.libs.R
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,23 +87,25 @@ useSystemTbb <- function(tbbLib, tbbInc) {
8787
useBundledTbb <- function() {
8888

8989
useTbbPreamble("tbb/include")
90-
dir.create("tbb/build", showWarnings = FALSE)
90+
dir.create("tbb/build-tbb", showWarnings = FALSE)
9191

9292
writeLines("*** configuring tbb")
93-
status <- system("cd tbb/build; cmake -DTBB_TEST=0 -DTBB_EXAMPLES=0 -DTBB_STRICT=0 .. > build.log 2>&1")
93+
status <- system("cd tbb/build-tbb; cmake -DTBB_TEST=0 -DTBB_EXAMPLES=0 -DTBB_STRICT=0 .. > build.log 2>&1")
9494
if (status != 0L) {
9595
system("cat build.log")
9696
stop("error configuring tbb (status code ", status, ")")
9797
}
9898

9999
writeLines("*** building tbb")
100-
status <- system("cd tbb/build; cmake --build . > build.log 2>&1")
100+
status <- system("cd tbb/build-tbb; cmake --build . > build.log 2>&1")
101101
if (status != 0L) {
102102
system("cat build.log")
103103
stop("error building tbb (status code ", status, ")")
104104
}
105105

106-
system("cd tbb/build; mv *_relwithdebinfo lib_release")
106+
dir.create("tbb/build", showWarnings = FALSE)
107+
system("mv tbb/build-tbb/*_relwithdebinfo tbb/build/lib_release")
108+
system("rm -rf tbb/build-tbb")
107109
writeLines("*** finished building tbb")
108110

109111
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.