OSDN Git Service

Replace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBUG, and add FORCE_BUI...
authorDavid Gross <dgross@google.com>
Fri, 12 Jun 2015 21:26:26 +0000 (14:26 -0700)
committerDavid Gross <dgross@google.com>
Thu, 18 Jun 2015 18:02:43 +0000 (11:02 -0700)
commit6047b700fc8fd983eb2dc0e86bed44ad9bd501e4
tree4b6b00cba92fa8859243179214bcdb6f28fb69d1
parent05e0751afbdfba48e492b81c5e4b2bcbae54ceeb
Replace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBUG, and add FORCE_BUILD_LLVM_DEBUG.

FORCE_BUILD_LLVM_DISABLE_NDEBUG and FORCE_BUILD_LLVM_DEBUG are
environment variables analogous to FORCE_BUILD_LLVM_COMPONENTS.

FORCE_BUILD_LLVM_DISABLE_NDEBUG compiles with -D_DEBUG -UNDEBUG.  This
has the effect of enabling assert() and certain internal behaviors
(e.g., various LLVM sanity checks).  FORCE_BUILD_LLVM_DISABLE_NDEBUG
must be set consistently during builds of llvm, clang, libbcc, and
slang to avoid undefined behavior.

FORCE_BUILD_LLVM_DEBUG compiles host code (but not device code) with -O0 -g.

Depends on similar changes in clang, libbcc, and slang.

Change-Id: Ic7cbfeb5fd97061c82a007324fb851eda2117f19
Android.mk
llvm-device-build.mk
llvm-host-build.mk