[llvm-commits] [test-suite] r58454 - /test-suite/trunk/Makefile.rules

Jim Grosbach grosbach at apple.com
Thu Oct 30 13:26:17 PDT 2008


Author: grosbach
Date: Thu Oct 30 15:26:15 2008
New Revision: 58454

URL: http://llvm.org/viewvc/llvm-project?rev=58454&view=rev
Log:
ENABLE_PROFILING, DISABLE_ASSERTIONS, and ENABLE_OPTIMIZED are {0,1} values, not just checked via ifdef. I.e., Change so 'make ENABLE_OPTIMIZED=0' et. al. behave as expected

Modified:
    test-suite/trunk/Makefile.rules

Modified: test-suite/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.rules?rev=58454&r1=58453&r2=58454&view=diff

==============================================================================
--- test-suite/trunk/Makefile.rules (original)
+++ test-suite/trunk/Makefile.rules Thu Oct 30 15:26:15 2008
@@ -137,11 +137,11 @@
 
 BURG_OPTS = -I
 
-ifdef ENABLE_PROFILING
+ifeq ($(ENABLE_PROFILING),1)
   ENABLE_OPTIMIZED = 1
   CONFIGURATION := Profile
 else
-  ifdef ENABLE_OPTIMIZED
+  ifeq ($(ENABLE_OPTIMIZED),1)
     CONFIGURATION := Release
   else
     CONFIGURATION := Debug
@@ -150,7 +150,7 @@
 
 # If ENABLE_ASSERTIONS=1 is specified (make command line or configured),
 # then adjust the CONFIGURATION name appropriately (to match LLVM makefiles)
-ifdef DISABLE_ASSERTIONS
+ifeq ($(DISABLE_ASSERTIONS),1)
   CONFIGURATION := $(CONFIGURATION)-Asserts
 endif
 
@@ -158,7 +158,7 @@
 # Enable this for profiling support with 'gprof'
 # This automatically enables optimized builds.
 #
-ifdef ENABLE_PROFILING
+ifeq ($(ENABLE_PROFILING),1)
   PROFILE = -pg
 endif
 





More information about the llvm-commits mailing list