Add USE_TLS option to switch between old and new memory.c
@@ -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")
