[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-ports
Subject:    Re: cmake release builds don't disable assertions (NDEBUG)
From:       Raphael Kubo da Costa <rakuco () FreeBSD ! org>
Date:       2017-02-06 21:27:01
Message-ID: 86wpd3t3h6.fsf () orwell
[Download RAW message or body]

Michael Gmelin <freebsd@grem.de> writes:

> While debugging an unexpected assertion problem, I noticed that ports
> using cmake don't set -NDEBUG, even when building in Release mode.
>
> Is this intentional?

Is it the software you're porting that checks for DEBUG or some library
it uses?

CMake code should check for CMAKE_BUILD_TYPE and adjust the compiler
flags accordingly (if at all); so if the software itself is checking for
DEBUG but not passing (or omitting it) I'd say the bug is there, not in
Mk/Uses/cmake.mk.
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic