diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-08-28 18:42:10 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-08-28 18:42:10 +0000 |
commit | c0225ca2769de22834afba06b1b8e7f318c0f7b7 (patch) | |
tree | 51e383c892fc760ac6c96e823a6e958e0419067d /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | dc65532fd96aed009a16a7e4bce03a63204fd7ac (diff) | |
download | llvm-c0225ca2769de22834afba06b1b8e7f318c0f7b7.zip llvm-c0225ca2769de22834afba06b1b8e7f318c0f7b7.tar.gz llvm-c0225ca2769de22834afba06b1b8e7f318c0f7b7.tar.bz2 |
[OpenMP] [CMake] Removing expand-vars.pl in favor of CMake's configure_file()
Currently, the libomp CMake build system uses a Perl script to configure files
(tools/expand-vars.pl). This patch replaces the use of the Perl script by using
CMake's configure_file() function. The major changes include:
1. *.var has every $KMP_* variable changed to @LIBOMP_*@
2. kmp_config.h.cmake is a new file which contains all the feature macros and
#cmakedefine lines
3. Most of the -D lines have been moved from LibompDefinitions.cmake but some
OS specific MACROs (e.g., _GNU_SOURCE) remain.
4. All expand-vars.pl related logic is removed from the CMake files.
One important note about this change is that it breaks the old Perl+Makefile
build system because it can't create kmp_config.h properly.
Differential Review: http://reviews.llvm.org/D12211
llvm-svn: 246314
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions