forked from OSchip/llvm-project
[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:
parent
9e1665f2d6
commit
04c5bc989a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue