Jacob Pratt cb1ccc1842
Rollup merge of #127654 - nikic:llvm-ndebug-fix, r=cuviper
Fix incorrect NDEBUG handling in LLVM bindings

We currently compile our LLVM bindings using `-DNDEBUG` if debuginfo for LLVM is disabled. However, `NDEBUG` doesn't have any relation to debuginfo, it controls whether assertions are enabled.

Split the LLVM_NDEBUG environment variable into two, so that assertions and debuginfo are controlled independently.

After this change, `LLVMRustDIBuilderInsertDeclareAtEnd` triggers an assertion failure on LLVM 19 due to an incorrect cast. Fix it by removing the unused return value entirely.

r? `@cuviper`
2024-07-13 00:24:35 -04:00
..
2023-12-31 15:27:43 +08:00
2024-07-11 12:20:26 +02:00
2024-07-02 15:48:48 -04:00
2024-06-21 19:26:06 +00:00
2024-06-21 19:26:06 +00:00
2024-06-01 12:50:58 -04:00
2024-03-06 17:49:37 -08:00