Index: native_client_sdk/src/gonacl_appengine/src/voronoi/Makefile |
diff --git a/native_client_sdk/src/gonacl_appengine/src/voronoi/Makefile b/native_client_sdk/src/gonacl_appengine/src/voronoi/Makefile |
index d92fc5369b6d45c42c7b6be9dd6caf9daeefea90..65af2f3a6917037e5013342dcb5be4bbfdd75d40 100644 |
--- a/native_client_sdk/src/gonacl_appengine/src/voronoi/Makefile |
+++ b/native_client_sdk/src/gonacl_appengine/src/voronoi/Makefile |
@@ -20,7 +20,9 @@ SOURCES = voronoi.cc |
$(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS)))) |
-ifeq ($(CONFIG),Release) |
+# The PNaCl workflow uses both an unstripped and finalized/stripped binary. |
+# On NaCl, only produce a stripped binary for Release configs (not Debug). |
+ifneq (,$(or $(findstring pnacl,$(TOOLCHAIN)),$(findstring Release,$(CONFIG)))) |
$(eval $(call LINK_RULE,$(TARGET)_unstripped,$(SOURCES),$(LIBS),$(DEPS))) |
$(eval $(call STRIP_RULE,$(TARGET),$(TARGET)_unstripped)) |
else |