rust/mk
Alex Crichton d5d834551c rustc: Add a debug_assertions #[cfg] directive
This commit is an implementation of [RFC 563][rfc] which adds a new
`cfg(debug_assertions)` directive which is specially recognized and calculated
by the compiler. The flag is turned off at any optimization level greater than 1
and may also be explicitly controlled through the `-C debug-assertions`
flag.

[rfc]: https://github.com/rust-lang/rfcs/pull/563

The `debug_assert!` and `debug_assert_eq!` macros now respect this instead of
the `ndebug` variable and `ndebug` no longer holds any meaning to the standard
library.

Code which was previously relying on `not(ndebug)` to gate expensive code should
be updated to rely on `debug_assertions` instead.

Closes #22492
[breaking-change]
2015-03-05 14:51:38 -08:00
..
cfg bitrig integration 2015-02-11 14:49:06 -08:00
clean.mk debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
crates.mk Separate most of rustc::lint::builtin into a separate crate. 2015-02-28 15:33:59 +11:00
ctags.mk Fix make TAGS.emacs. 2014-12-16 17:08:49 +01:00
debuggers.mk Make build timestamp files robust in face of concurrent source modification. 2015-03-03 15:11:01 +01:00
dist.mk Upgrade rust-installer 2015-02-12 20:36:17 -08:00
docs.mk std: Deprecate std::old_io::fs 2015-03-04 15:59:30 -08:00
grammar.mk Add a LALR grammar for Rust with testing support 2015-01-20 18:47:17 -08:00
host.mk mk: Add space before line continuation backslash 2014-07-23 08:44:11 -07:00
install.mk Remove duplicated configuration for android 2015-02-10 21:53:33 +09:00
llvm.mk Make build timestamp files robust in face of concurrent source modification. 2015-03-03 15:11:01 +01:00
main.mk Rollup merge of #22292 - brson:alpha2, r=alexcrichton 2015-02-15 18:42:47 +05:30
perf.mk
platform.mk PR review fixes 2015-02-11 14:49:10 -08:00
prepare.mk iOS: fixed install phase 2015-01-12 10:09:47 +02:00
reconfig.mk Correct building documenation with Pandoc and TeX on Windows. 2014-11-06 18:08:33 +03:00
rt.mk Remove duplicated configuration for android 2015-02-10 21:53:33 +09:00
rustllvm.mk Add LLVM ExecutionEngine API 2014-12-11 15:33:27 -07:00
snap.mk mk: Remove extra whitespace before line continuation backslashes 2014-07-23 08:41:55 -07:00
stage0.mk mk/stage0: complain instead of creating an empty file 2014-11-20 16:00:12 -05:00
target.mk Make build timestamp files robust in face of concurrent source modification. 2015-03-03 15:11:01 +01:00
tests.mk rustc: Add a debug_assertions #[cfg] directive 2015-03-05 14:51:38 -08:00
util.mk mk: Address review feedback 2014-02-14 19:17:50 -08:00