Emit service request stubs after relocation
[hiphop-php.git] / CMake / Options.cmake
blobd305fedfdf711a480619f1051973fd86700c6b3a
1 #set(CMAKE_BUILD_TYPE Debug)
3 option(ALWAYS_ASSERT "Enabled asserts in a release build" OFF)
4 option(ENABLE_SSP "Enabled GCC/LLVM stack-smashing protection" OFF)
5 option(STATIC_CXX_LIB "Statically link libstd++ and libgcc." OFF)
6 option(ENABLE_AVX2 "Enable the use of AVX2 instructions" OFF)
7 option(ENABLE_AARCH64_CRC "Enable the use of CRC instructions" OFF)
8 option(ENABLE_FASTCGI "Enable the FastCGI interface." ON)
9 option(ENABLE_SSE4_2 "Enable SSE4.2 supported code." OFF)
11 option(EXECUTION_PROFILER "Enable the execution profiler" OFF)
13 option(USE_JEMALLOC "Use jemalloc" ON)
14 option(FORCE_TP_JEMALLOC "Always build and statically link jemalloc instead of using system version" OFF)
16 option(ENABLE_HHPROF "Enable HHProf" OFF)
18 option(CLANG_FORCE_LIBSTDCXX "Force libstdc++ when building against Clang/LLVM" OFF)
20 option(USE_TCMALLOC "Use tcmalloc (if jemalloc is not used)" ON)
21 option(USE_GOOGLE_HEAP_PROFILER "Use Google heap profiler" OFF)
22 option(USE_GOOGLE_CPU_PROFILER "Use Google cpu profiler" OFF)
24 option(DISABLE_HARDWARE_COUNTERS "Disable hardware counters (for XenU systems)" OFF)
26 option(ENABLE_TRACE "Enable tracing in release build" OFF)
27 option(CPACK_GENERATOR "Enable build of distribution packages using CPack" OFF)
29 option(ENABLE_COTIRE "Speed up the build by precompiling headers" OFF)
30 if (APPLE)
31   option(ENABLE_MCROUTER "Build the mcrouter library and extension" OFF)
32 else()
33   option(ENABLE_MCROUTER "Build the mcrouter library and extension" ON)
34 endif()
35 option(ENABLE_PROXYGEN_SERVER "Build the Proxygen HTTP server" ON)
37 option(ENABLE_SPLIT_DWARF "Reduce linker memory usage by putting debugging information into .dwo files" OFF)
39 IF (LINUX)
40     option(MAP_TEXT_HUGE_PAGES "Remap hot static code onto huge pages" ON)
41 ENDIF()
43 IF (NOT DEFAULT_CONFIG_DIR)
44   set(DEFAULT_CONFIG_DIR "/etc/hhvm/" CACHE STRING
45     "Default directory to find php.ini")
46 ENDIF()
48 option(ENABLE_XED "Use the XED library for HHVM. If ON, tc-print will be built for X86." OFF)