Issue the warning about being slow whenever optimization is disabled,
[oota-llvm.git] / Makefile
index 057fb2a1411aeb5e0ad4fb136b17765e44ec3588..d42f887b6b18f175c3a094e4036917358b275482 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -181,7 +181,7 @@ $(FilesToConfigPATH) : $(LLVM_OBJ_ROOT)/% : $(LLVM_SRC_ROOT)/%.in
 ifneq ($(BUILD_DIRS_ONLY),1)
 all::
        $(Echo) '*****' Completed $(BuildMode) Build
-ifeq ($(BuildMode),Debug+Asserts)
+ifneq ($(ENABLE_OPTIMIZED),1)
        $(Echo) '*****' Note: Debug build can be 10 times slower than an
        $(Echo) '*****' optimized build. Use 'make ENABLE_OPTIMIZED=1' to
        $(Echo) '*****' make an optimized build. Alternatively you can