Commit 3eb9e985 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

cut unused config FOLLY_SUPPLY_MISSING_INT128_TRAITS

Reviewed By: luciang

Differential Revision: D30115064

fbshipit-source-id: 53e29b7e3d1a9ea319e7e7f4a636a66c04d2bf24
parent 49255a75
...@@ -149,30 +149,6 @@ check_cxx_source_runs(" ...@@ -149,30 +149,6 @@ check_cxx_source_runs("
FOLLY_HAVE_LINUX_VDSO FOLLY_HAVE_LINUX_VDSO
) )
check_type_size(__int128 INT128_SIZE LANGUAGE CXX)
if (NOT INT128_SIZE STREQUAL "")
set(FOLLY_HAVE_INT128_T ON)
check_cxx_source_compiles("
#include <functional>
#include <type_traits>
#include <utility>
static_assert(
::std::is_same<::std::make_signed<unsigned __int128>::type,
__int128>::value,
\"signed form of 'unsigned __uint128' must be '__int128'.\");
static_assert(
sizeof(::std::hash<__int128>{}(0)) > 0, \
\"std::hash<__int128> is disabled.\");
int main() { return 0; }"
HAVE_INT128_TRAITS
)
if (HAVE_INT128_TRAITS)
set(FOLLY_SUPPLY_MISSING_INT128_TRAITS OFF)
else()
set(FOLLY_SUPPLY_MISSING_INT128_TRAITS ON)
endif()
endif()
check_cxx_source_runs(" check_cxx_source_runs("
#include <cstddef> #include <cstddef>
#include <cwchar> #include <cwchar>
......
...@@ -60,7 +60,6 @@ ...@@ -60,7 +60,6 @@
#cmakedefine FOLLY_HAVE_LINUX_VDSO 1 #cmakedefine FOLLY_HAVE_LINUX_VDSO 1
#cmakedefine FOLLY_HAVE_MALLOC_USABLE_SIZE 1 #cmakedefine FOLLY_HAVE_MALLOC_USABLE_SIZE 1
#cmakedefine FOLLY_HAVE_INT128_T 1 #cmakedefine FOLLY_HAVE_INT128_T 1
#cmakedefine FOLLY_SUPPLY_MISSING_INT128_TRAITS 1
#cmakedefine FOLLY_HAVE_WCHAR_SUPPORT 1 #cmakedefine FOLLY_HAVE_WCHAR_SUPPORT 1
#cmakedefine FOLLY_HAVE_EXTRANDOM_SFMT19937 1 #cmakedefine FOLLY_HAVE_EXTRANDOM_SFMT19937 1
#cmakedefine FOLLY_USE_LIBCPP 1 #cmakedefine FOLLY_USE_LIBCPP 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment