diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-10-13 23:48:28 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-10-13 23:48:28 +0000 |
commit | a66a7b30ce3624a849867ad39ac62fb8944eb141 (patch) | |
tree | d927ac51947a3f5bf5f980bf41f53450f558c933 /libcxx/cmake/Modules | |
parent | 7df337f85c78e64c3fb2d36c859212e8d06f7725 (diff) | |
download | bcm5719-llvm-a66a7b30ce3624a849867ad39ac62fb8944eb141.tar.gz bcm5719-llvm-a66a7b30ce3624a849867ad39ac62fb8944eb141.zip |
ABI versioning macros for libc++.
C++ macros and CMake options that specify the default ABI version of
the library, and can be overridden to pick up new ABI-changing
features.
llvm-svn: 250254
Diffstat (limited to 'libcxx/cmake/Modules')
-rw-r--r-- | libcxx/cmake/Modules/HandleLibcxxFlags.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/cmake/Modules/HandleLibcxxFlags.cmake b/libcxx/cmake/Modules/HandleLibcxxFlags.cmake index a9e43eaece9..320650513b6 100644 --- a/libcxx/cmake/Modules/HandleLibcxxFlags.cmake +++ b/libcxx/cmake/Modules/HandleLibcxxFlags.cmake @@ -65,6 +65,12 @@ macro(config_define_if_not condition def) endif() endmacro() +macro(config_define value def) + set(${def} ${value}) + add_definitions(-D${def}=${value}) + set(LIBCXX_NEEDS_SITE_CONFIG ON) +endmacro() + # Add a specified list of flags to both 'LIBCXX_COMPILE_FLAGS' and # 'LIBCXX_LINK_FLAGS'. macro(add_flags) |