summaryrefslogtreecommitdiff
path: root/pstl/include
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-06-20 17:56:51 +0000
committerLouis Dionne <ldionne@apple.com>2019-06-20 17:56:51 +0000
commit04c5bc989a31b81bd7dda1f3e53de2930c8c7ec0 (patch)
tree77ae2f5c024b893cf91a2f042acaabca0b460f41 /pstl/include
parent9e1665f2d61ee52d06226682860af5da0c042e82 (diff)
downloadllvm-04c5bc989a31b81bd7dda1f3e53de2930c8c7ec0.tar.gz
[pstl] Default to the serial backend when unspecified
This is a stopgap measure to make it easier to integrate the PSTL into libc++. In the future, we should have a system similar to what libc++ does, where we specify settings at configuration time and generate a __config_site header that is part of the PSTL. llvm-svn: 363958
Diffstat (limited to 'pstl/include')
-rw-r--r--pstl/include/pstl/internal/pstl_config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pstl/include/pstl/internal/pstl_config.h b/pstl/include/pstl/internal/pstl_config.h
index 72f31c31f5cc..3c2b14677866 100644
--- a/pstl/include/pstl/internal/pstl_config.h
+++ b/pstl/include/pstl/internal/pstl_config.h
@@ -17,7 +17,9 @@
#define _PSTL_VERSION_PATCH (_PSTL_VERSION % 10)
#if !defined(_PSTL_PAR_BACKEND_SERIAL) && !defined(_PSTL_PAR_BACKEND_TBB)
-# error "The parallel backend is neither serial nor TBB"
+// TODO: In the future, we need to handle this setting using a configure-time
+// option and something like a __config_site header.
+# define _PSTL_PAR_BACKEND_SERIAL
#endif
// Check the user-defined macro for warnings