Skip to content

Commit f5e71f5

Browse files
committed
Merge pull request #3719 from lucab/lucab/to-upstream/pull-2
Fix #3701: rustllvm conditional build
2 parents ebce097 + 97ecde2 commit f5e71f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rustllvm/RustWrapper.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -493,5 +493,7 @@ extern "C" LLVMValueRef LLVMBuildAtomicRMW(LLVMBuilderRef B,
493493
}
494494

495495
extern "C" void LLVMSetDebug(int Enabled) {
496+
#ifndef NDEBUG
496497
DebugFlag = Enabled;
498+
#endif
497499
}

0 commit comments

Comments
 (0)