diff options
author | Louis Dionne <ldionne@apple.com> | 2019-08-08 15:43:13 +0300 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-08-08 15:43:13 +0300 |
commit | a8a436ef95908a560ddca8c5f7c5349d2dc2f977 (patch) | |
tree | 8b3b3a2b9a231bfae2fe8bd1af6467e0d4e5eb61 /pstl | |
parent | bf4808439f10d270b34cdb82765b74cecc1be191 (diff) |
[pstl] Error out when the backend is left unspecified
Instead of silently falling back to the serial backend, it's better if
we fail loudly when the parallel backend is left unspecified. Since we
have a __pstl_config_site header, a backend should always be specified.
llvm-svn: 368285
Diffstat (limited to 'pstl')
-rw-r--r-- | pstl/include/pstl/internal/pstl_config.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pstl/include/pstl/internal/pstl_config.h b/pstl/include/pstl/internal/pstl_config.h index ba0bc148484d..c2a737b42739 100644 --- a/pstl/include/pstl/internal/pstl_config.h +++ b/pstl/include/pstl/internal/pstl_config.h @@ -19,9 +19,7 @@ #define _PSTL_VERSION_PATCH (_PSTL_VERSION % 10) #if !defined(_PSTL_PAR_BACKEND_SERIAL) && !defined(_PSTL_PAR_BACKEND_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 +# error "A parallel backend must be specified" #endif // Check the user-defined macro for warnings |