-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathflags.Rd
More file actions
43 lines (36 loc) · 1.05 KB
/
flags.Rd
File metadata and controls
43 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/flags.R
\name{flags}
\alias{flags}
\alias{RcppParallelLibs}
\alias{LdFlags}
\alias{CxxFlags}
\title{Compilation flags for RcppParallel}
\usage{
CxxFlags()
LdFlags()
RcppParallelLibs()
}
\value{
Returns \code{NULL}, invisibly. These functions are called for
their side effects (writing the associated flags to stdout).
}
\description{
Output the compiler or linker flags required to build against RcppParallel.
}
\details{
These functions are typically called from `Makevars` as follows:
```
PKG_LIBS += $(shell "${R_HOME}/bin/Rscript" -e "RcppParallel::LdFlags()")
```
On Windows, the flags ensure that the package links with the built-in TBB
library. On Linux and macOS, the output is empty, because TBB is loaded
dynamically on load by `RcppParallel`.
\R packages using RcppParallel should also add the following to their
`NAMESPACE` file:
```
importFrom(RcppParallel, RcppParallelLibs)
```
This is necessary to ensure that \pkg{RcppParallel} (and so, TBB) is loaded
and available.
}