Skip to content

Commit cb90afc

Browse files
committed
don't use unsupported flag on solaris
1 parent 25568ac commit cb90afc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/build.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ inlineCxxPlugin <- function() {
2828
}
2929

3030
tbbCxxFlags <- function() {
31-
flags <- "-Wno-long-long"
31+
if (Sys.info()['sysname'] != "SunOS")
32+
flags <- "-Wno-long-long"
33+
else
34+
flags <- ""
3235
if (Sys.info()['sysname'] == "Windows")
3336
flags <- paste(flags, "-DRCPP_PARALLEL_USE_TBB=1")
3437
flags

0 commit comments

Comments
 (0)