Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: native_client_sdk/src/tools/common.mk

Issue 60343003: [NaCl SDK] Check for valid CONFIG parameter to Makefile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tools/common.mk
diff --git a/native_client_sdk/src/tools/common.mk b/native_client_sdk/src/tools/common.mk
index 78fdf59c8897132cc1e24f679494bfa30d0dcd84..ac9179010e1b0f230ebeb9111dd4c8982ee96814 100644
--- a/native_client_sdk/src/tools/common.mk
+++ b/native_client_sdk/src/tools/common.mk
@@ -112,6 +112,16 @@ endif
#
+# Verify we selected a valid configuration for this example.
+#
+VALID_CONFIGS ?= Debug Release
+ifeq (,$(findstring $(CONFIG),$(VALID_CONFIGS)))
+ $(warning Availbile choices are: $(VALID_CONFIGS))
+ $(error Can not use CONFIG=$(CONFIG) on this example.)
+endif
+
+
+#
# Note for Windows:
# The GCC and LLVM toolchains (include the version of Make.exe that comes
# with the SDK) expect and are capable of dealing with the '/' seperator.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698