[LLVMbugs] [Bug 18253] New: llvm-config doesn't set NDEBUG

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 14 11:04:07 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18253

            Bug ID: 18253
           Summary: llvm-config doesn't set NDEBUG
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kraiskil at ovi.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

llvm 3.4 (branch) built with cmake "MinSizeRel" builds a llvm-config that does
not pass on "-DNDEBUG".

If 3rd party tools using LLVM rely on llvm-config for detecting a non-debug
build, this leads to errors.

E.g. it is impossible to use #include "llvm/Support/Debug.h" and use its
features in out-of-tree built passes, as that header references symbols that
are not built in llvm.

Also, e.g. if code on the line include/llvm/ADT/Statistic.h:156
(TsanHappensAfter(this);) is executed, a jump to a random address is executed
(valgrind states that: ==13931== Jump to the invalid address stated on the next
line)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131214/ee1fb70b/attachment.html>


More information about the llvm-bugs mailing list