Skip to content

Commit

Permalink
Invent an LLVM_RELEASE_IS_PLUS_ASSERTS make variable, to allow using …
Browse files Browse the repository at this point in the history
…LLVM test

suite with older LLVM source trees.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@108981 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Jul 21, 2010
1 parent d743323 commit 9c9ac29
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,25 @@ ifeq ($(ENABLE_PROFILING),1)
CONFIGURATION := $(CONFIGURATION)+Profile
endif

# We cleverly reversed the sense of this variable in r107758, support use of
# LLVM_RELEASE_IS_PLUS_ASSERTS to allow testing old LLVM revs. We can eliminate
# this when we kill the dependency on LLVM's Makefiles.
ifeq ($(LLVM_RELEASE_IS_PLUS_ASSERTS),1)

ifeq ($(DISABLE_ASSERTIONS),1)
CONFIGURATION := $(CONFIGURATION)-Asserts
endif

else

# Unless DISABLE_ASSERTIONS=1 is specified (make command line or configured),
# adjust the CONFIGURATION name appropriately (to match LLVM makefiles)
ifneq ($(DISABLE_ASSERTIONS),1)
CONFIGURATION := $(CONFIGURATION)+Asserts
endif

endif

# If ENABLE_EXPENSIVE_CHECKS=1 is specified (make command line or
# configured), then adjust the CONFIGURATION name appropriately
# (to match LLVM makefiles)
Expand Down

0 comments on commit 9c9ac29

Please sign in to comment.