From 31ec5421117329d27651c65f299d8d79fd73a2b7 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 28 May 2014 15:58:35 +0800 Subject: [PATCH] cmake: support X86_REDUCE mode --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dfd7d61..cb3bc82e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ option(ARM64_SUPPORT "ARM64 support" ON) option(MIPS_SUPPORT "MIPS support" ON) option(PPC_SUPPORT "PowerPC support" ON) option(X86_SUPPORT "X86 support" ON) +option(X86_REDUCE "X86 with reduce instruction sets to minimize library" ON) option(SPARC_SUPPORT "Sparc support" ON) option(SYSZ_SUPPORT "SystemZ support" ON) option(XCORE_SUPPORT "XCore support" ON) @@ -139,6 +140,10 @@ if (BUILD_DIET) add_definitions(-DCAPSTONE_DIET) endif () +if (X86_REDUCE) + add_definitions(-DCAPSTONE_X86_REDUCE) +endif () + if (BUILD_STATIC) add_library(libcapstone STATIC ${SOURCES}) else ()