put into the CPP.Defines variable. Seems the convention was corrupted with
various changes made. It is important to get command line parameters into the
right variable because things like llvm-config and sub-makefiles depend on it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38486
91177308-0d34-0410-b5e6-
96231b3b80d8
# Variables derived from configuration we are building
#--------------------------------------------------------------------
# Variables derived from configuration we are building
#--------------------------------------------------------------------
# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with
# this can be overridden on the make command line.
ifneq ($(OS),MingW)
# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with
# this can be overridden on the make command line.
ifneq ($(OS),MingW)
# then disable assertions by defining the appropriate preprocessor symbols.
ifdef DISABLE_ASSERTIONS
BuildMode := $(BuildMode)-Asserts
# then disable assertions by defining the appropriate preprocessor symbols.
ifdef DISABLE_ASSERTIONS
BuildMode := $(BuildMode)-Asserts
- CXX.Flags += -DNDEBUG
- C.Flags += -DNDEBUG
+ CPP.Defines += -DNDEBUG
- CXX.Flags += -D_DEBUG
- C.Flags += -D_DEBUG
+ CPP.Defines += -D_DEBUG
endif
# If ENABLE_EXPENSIVE_CHECKS=1 is specified (make command line or
endif
# If ENABLE_EXPENSIVE_CHECKS=1 is specified (make command line or
# appropriate preprocessor symbols.
ifdef ENABLE_EXPENSIVE_CHECKS
BuildMode := $(BuildMode)+Checks
# appropriate preprocessor symbols.
ifdef ENABLE_EXPENSIVE_CHECKS
BuildMode := $(BuildMode)+Checks
- CXX.Flags += -D_GLIBCXX_DEBUG
+ CPP.Defines += -D_GLIBCXX_DEBUG
endif
ifeq ($(ENABLE_PIC),1)
endif
ifeq ($(ENABLE_PIC),1)