Commit 33428ecb authored by Léonard Gérard's avatar Léonard Gérard Committed by Facebook Github Bot

Fix LIBCPP cmake check

Summary:
The test was missing a `main` meaning that it would fail even if libc++ was in use, making all the rest fail on macos for example.
Closes https://github.com/facebook/folly/pull/831

Reviewed By: Orvid

Differential Revision: D7787115

Pulled By: yfeldblum

fbshipit-source-id: 4a10323298be3f26f783fa1257cbde2483fb75b9
parent b61b327d
...@@ -166,7 +166,7 @@ check_cxx_source_compiles(" ...@@ -166,7 +166,7 @@ check_cxx_source_compiles("
#if !_LIBCPP_VERSION #if !_LIBCPP_VERSION
#error No libc++ #error No libc++
#endif #endif
void func() {}" int main() { return 0; }"
FOLLY_USE_LIBCPP FOLLY_USE_LIBCPP
) )
......
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