OSDN Git Service

Set default thread count to 1 for debug builds.
authorGreg Hartman <ghartman@google.com>
Fri, 2 Oct 2015 23:29:40 +0000 (16:29 -0700)
committerGreg Hartman <ghartman@google.com>
Thu, 8 Oct 2015 19:40:19 +0000 (19:40 +0000)
Change-Id: I14673f17ef0f299a7ead5bc55bd6729f37759b19
Reviewed-on: https://swiftshader-review.googlesource.com/3870
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Greg Hartman <ghartman@google.com>
src/Android.mk

index aa28463..9d6f3b8 100644 (file)
@@ -98,6 +98,6 @@ LOCAL_CLANG := true
 LOCAL_MODULE := swiftshader_top_debug
 LOCAL_MODULE_TAGS := optional
 LOCAL_SRC_FILES := $(COMMON_SRC_FILES)
-LOCAL_CFLAGS := $(COMMON_CFLAGS) -UNDEBUG -g -O0
+LOCAL_CFLAGS := $(COMMON_CFLAGS) -UNDEBUG -g -O0 -DDEFAULT_THREAD_COUNT=1
 LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES)
 include $(BUILD_STATIC_LIBRARY)