diff options
| author | Louis Dionne <ldionne@apple.com> | 2019-08-08 12:43:04 +0000 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2019-08-08 12:43:04 +0000 |
| commit | bf4808439f10d270b34cdb82765b74cecc1be191 (patch) | |
| tree | f9227919883f59ff8fee5b02ea61aa30be615c30 /pstl/include | |
| parent | bdc022a695e0f09638219e1be6ebcce793cb9d2b (diff) | |
| download | bcm5719-llvm-bf4808439f10d270b34cdb82765b74cecc1be191.tar.gz bcm5719-llvm-bf4808439f10d270b34cdb82765b74cecc1be191.zip | |
[pstl] Add a __pstl_config_site header to record the CMake configuration
This commit adds a __pstl_config_site header that contains the value of
macros specified at CMake configuration time. It works similarly to
libc++'s __config_site header, except we always include it as a separate
file instead of concatenating it to the main configuration header.
It is necessary to thread the includes for that header into libc++'s
lit configuration, otherwise we'd be requiring an installation step
prior to running the test suite.
llvm-svn: 368284
Diffstat (limited to 'pstl/include')
| -rw-r--r-- | pstl/include/__pstl_config_site.in | 15 | ||||
| -rw-r--r-- | pstl/include/pstl/internal/pstl_config.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/pstl/include/__pstl_config_site.in b/pstl/include/__pstl_config_site.in new file mode 100644 index 00000000000..f92c695bad5 --- /dev/null +++ b/pstl/include/__pstl_config_site.in @@ -0,0 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __PSTL_CONFIG_SITE +#define __PSTL_CONFIG_SITE + +#cmakedefine _PSTL_PAR_BACKEND_SERIAL +#cmakedefine _PSTL_PAR_BACKEND_TBB + +#endif // __PSTL_CONFIG_SITE diff --git a/pstl/include/pstl/internal/pstl_config.h b/pstl/include/pstl/internal/pstl_config.h index ba964912e66..ba0bc148484 100644 --- a/pstl/include/pstl/internal/pstl_config.h +++ b/pstl/include/pstl/internal/pstl_config.h @@ -10,6 +10,8 @@ #ifndef _PSTL_CONFIG_H #define _PSTL_CONFIG_H +#include <__pstl_config_site> + // The version is XYYZ, where X is major, YY is minor, and Z is patch (i.e. X.YY.Z) #define _PSTL_VERSION 10000 #define _PSTL_VERSION_MAJOR (_PSTL_VERSION / 1000) |

