mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-06 01:19:28 +00:00
[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
This commit is contained in:
parent
bf4808439f
commit
a8a436ef95
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user