From a66a7b30ce3624a849867ad39ac62fb8944eb141 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 13 Oct 2015 23:48:28 +0000 Subject: 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 --- libcxx/cmake/Modules/HandleLibcxxFlags.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcxx/cmake') 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) -- cgit v1.2.3