[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
This commit is contained in:
Louis Dionne 2019-06-20 17:56:51 +00:00
parent 9e1665f2d6
commit 04c5bc989a
1 changed files with 3 additions and 1 deletions

View File

@ -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