about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-07-12 14:48:42 +0200
committerNikita Popov <nikita.ppv@gmail.com>2024-07-12 22:13:56 +0200
commit776b0adaafa2198caa0ef6485e3e78a43620a58b (patch)
treee9cb4d09e06255f9274479523b29f56fd3513f3b /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parent0fdfb61795b40037955154638fe35f20b16c8e55 (diff)
downloadrust-776b0adaafa2198caa0ef6485e3e78a43620a58b.tar.gz
rust-776b0adaafa2198caa0ef6485e3e78a43620a58b.zip
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.

Rename the environment variable to `LLVM_ASSERTIONS` and drive
it using the `llvm_assertions` option. Also drop the explicit
`debug(false)` call, as cc already sets this up using the
cargo `DEBUG` environment variable.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
0 files changed, 0 insertions, 0 deletions