Add USE_TLS option to switch between old and new memory.c
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 25 Aug 2018 17:36:12 +0000 (19:36 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Aug 2018 17:36:12 +0000 (19:36 +0200)
cmake/system.cmake

index 48e8f75..18b2c3b 100644 (file)
@@ -214,6 +214,10 @@ if (CONSISTENT_FPCSR)
   set(CCOMMON_OPT "${CCOMMON_OPT} -DCONSISTENT_FPCSR")
 endif ()
 
+if (USE_TLS)
+  set(CCOMMON_OPT "${CCOMMON_OPT} -DUSE_TLS")
+endif ()
+
 # Only for development
 # set(CCOMMON_OPT "${CCOMMON_OPT} -DPARAMTEST")
 # set(CCOMMON_OPT "${CCOMMON_OPT} -DPREFETCHTEST")