Add support for x86_64 builds (#128)

Summary:
Add the required compiler flag for Folly when building x86_64.

I'll prepare a new release for this shortly.

Depends on #126
Closes https://github.com/facebook/Sonar/pull/128

Reviewed By: danielbuechele

Differential Revision: D8731955

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 9511811b0b51205989a5200ad9d0d8689ca684cb
This commit is contained in:
Pascal Hartig
2018-07-04 10:11:42 -07:00
committed by Facebook Github Bot
parent ce33859d2d
commit 3dcf7722bb
2 changed files with 6 additions and 1 deletions

View File

@@ -47,6 +47,11 @@ add_compile_options(
-Wno-return-type
-Wno-tautological-constant-compare
)
if (CMAKE_ANDROID_ARCH_ABI STREQUAL "x86_64")
add_compile_options(-mpclmul)
endif()
file(GLOB SRC_FILES ${FOLLY_DIR}/portability/*.cpp
${FOLLY_DIR}/io/async/ssl/*.cpp
${FOLLY_DIR}/io/async/*.cpp