summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuiling Song <ruiling.song@intel.com>2015-02-04 15:08:19 +0800
committerZhigang Gong <zhigang.gong@intel.com>2015-02-04 15:28:54 +0800
commitc283eeb9481c7ed029552ff80abcc4141573b03a (patch)
tree30b73e73d6bbf845c2ef3b5604b76f6c125f73bc
parent4c54543fa02a1142ae4f5ee8b604b1b7268ac444 (diff)
downloadbeignet-c283eeb9481c7ed029552ff80abcc4141573b03a.tar.gz
GBE: Fix a build error against llvm release version
The DEBUG macro will try to link llvm::DebugFlag and llvm::isCurrentDebugType() which is absent in release version of LLVM library. So define it to empty. The problem occurs when building debug version of beignet against the release version of llvm. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Tested-by: "Meng, Mengmeng" <mengmeng.meng@intel.com>
-rw-r--r--backend/src/llvm/ExpandLargeIntegers.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/src/llvm/ExpandLargeIntegers.cpp b/backend/src/llvm/ExpandLargeIntegers.cpp
index cbb2708b..5b620fcb 100644
--- a/backend/src/llvm/ExpandLargeIntegers.cpp
+++ b/backend/src/llvm/ExpandLargeIntegers.cpp
@@ -105,7 +105,10 @@
using namespace llvm;
#define DEBUG_TYPE "nacl-expand-ints"
-
+#ifdef DEBUG
+ #undef DEBUG
+ #define DEBUG(...)
+#endif
// Break instructions up into no larger than 64-bit chunks.
static const unsigned kChunkBits = 64;
static const unsigned kChunkBytes = kChunkBits / CHAR_BIT;