summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorbsegovia <devnull@localhost>2011-11-29 04:37:51 +0000
committerKeith Packard <keithp@keithp.com>2012-08-10 16:15:05 -0700
commita7e1411408134bdf107ccf9147ee6e02afe94645 (patch)
tree7f330d0fd6757eb239048fda621e1d20d09f2e03 /CMakeLists.txt
parenta944752cbe12e7db7b8ecb8b8df79a3517da8023 (diff)
Ported the code to HSW
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07ed3b99..5e974c67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,9 +13,10 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
SET(CMAKE_VERBOSE_MAKEFILE "false")
SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type")
-SET(USE_INTEL_COMPILER CACHE BOOL "false")
-SET(EMULATE_IVB CACHE BOOL "false")
-SET(EMULATE_SNB CACHE BOOL "false")
+SET(EMULATE_IVB false CACHE BOOL "To emulate IVB")
+SET(EMULATE_SNB false CACHE BOOL "To emulate SNB")
+SET(EMULATE_HSW false CACHE BOOL "To emulate HSW")
+SET(USE_OLD_COMPILER false CACHE BOOL "To use the old compiler (required for SNB)")
ADD_DEFINITIONS(-D__$(USER)__)
IF (EMULATE_HSW)
@@ -32,6 +33,12 @@ ELSE (EMULATE_IVB)
ADD_DEFINITIONS(-DEMULATE_GEN=0)
ENDIF (EMULATE_HSW)
+IF (USE_OLD_COMPILER)
+ ADD_DEFINITIONS (-DUSE_OLD_COMPILER=1)
+ELSE (USE_OLD_COMPILER)
+ ADD_DEFINITIONS (-DUSE_OLD_COMPILER=0)
+ENDIF (USE_OLD_COMPILER)
+
IF (USE_FULSIM)
ADD_DEFINITIONS(-DUSE_FULSIM=1)
ELSE (USE_FULSIM)