Conditional usage of LLVM DebugFlag
DebugFlag is conditionally exported by LLVM in llvm/Support/Debug.h in-between an #ifndef NDEBUG block; RustWrapper should not unconditionally use it. This closes #3701. Signed-off-by: Luca Bruno <lucab@debian.org>
This commit is contained in:
parent
39acb06503
commit
97ecde297e
@ -493,5 +493,7 @@ extern "C" LLVMValueRef LLVMBuildAtomicRMW(LLVMBuilderRef B,
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void LLVMSetDebug(int Enabled) {
|
extern "C" void LLVMSetDebug(int Enabled) {
|
||||||
|
#ifndef NDEBUG
|
||||||
DebugFlag = Enabled;
|
DebugFlag = Enabled;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user