* [PATCH] build: Added -UNDEBUG to tools/Android.mk
@ 2014-01-08 16:07 devon.davies
2014-01-08 16:27 ` Damien Lespiau
2014-01-08 17:13 ` Mateo Lozano, Oscar
0 siblings, 2 replies; 4+ messages in thread
From: devon.davies @ 2014-01-08 16:07 UTC (permalink / raw)
To: intel-gfx; +Cc: Devon Davies
From: Devon Davies <devon.davies@intel.com>
NDEBUG is defined by default in Android and causes assert(x) to be
defined as void(x). This change ensures that asserts work as
expected in tools.
This flag is already inside tests/Android.mk
Signed-off-by: Devon Davies <devon.davies@intel.com>
---
tools/Android.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/Android.mk b/tools/Android.mk
index 4a19b6c..5bda489 100644
--- a/tools/Android.mk
+++ b/tools/Android.mk
@@ -40,7 +40,7 @@ define add_tool
LOCAL_CFLAGS += -DHAVE_TERMIOS_H
LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
- LOCAL_CFLAGS += -DANDROID
+ LOCAL_CFLAGS += -DANDROID -UNDEBUG
LOCAL_CFLAGS += -std=c99
# FIXME: drop once Bionic correctly annotates "noreturn" on pthread_exit
LOCAL_CFLAGS += -Wno-error=return-type
--
1.7.9.5
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] build: Added -UNDEBUG to tools/Android.mk
2014-01-08 16:07 [PATCH] build: Added -UNDEBUG to tools/Android.mk devon.davies
@ 2014-01-08 16:27 ` Damien Lespiau
2014-01-08 17:13 ` Mateo Lozano, Oscar
1 sibling, 0 replies; 4+ messages in thread
From: Damien Lespiau @ 2014-01-08 16:27 UTC (permalink / raw)
To: oscar.mateo; +Cc: devon.davies, intel-gfx
On Wed, Jan 08, 2014 at 04:07:06PM +0000, devon.davies@intel.com wrote:
> From: Devon Davies <devon.davies@intel.com>
>
> NDEBUG is defined by default in Android and causes assert(x) to be
> defined as void(x). This change ensures that asserts work as
> expected in tools.
>
> This flag is already inside tests/Android.mk
>
> Signed-off-by: Devon Davies <devon.davies@intel.com>
Hi Oscar,
The change looks good from here, mind dropping a Reviewed-By tag as you
were the one looking at that in the first place?
Thanks,
--
Damien
> ---
> tools/Android.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/Android.mk b/tools/Android.mk
> index 4a19b6c..5bda489 100644
> --- a/tools/Android.mk
> +++ b/tools/Android.mk
> @@ -40,7 +40,7 @@ define add_tool
>
> LOCAL_CFLAGS += -DHAVE_TERMIOS_H
> LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
> - LOCAL_CFLAGS += -DANDROID
> + LOCAL_CFLAGS += -DANDROID -UNDEBUG
> LOCAL_CFLAGS += -std=c99
> # FIXME: drop once Bionic correctly annotates "noreturn" on pthread_exit
> LOCAL_CFLAGS += -Wno-error=return-type
> --
> 1.7.9.5
>
> ---------------------------------------------------------------------
> Intel Corporation (UK) Limited
> Registered No. 1134945 (England)
> Registered Office: Pipers Way, Swindon SN3 1RJ
> VAT No: 860 2173 47
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] build: Added -UNDEBUG to tools/Android.mk
2014-01-08 16:07 [PATCH] build: Added -UNDEBUG to tools/Android.mk devon.davies
2014-01-08 16:27 ` Damien Lespiau
@ 2014-01-08 17:13 ` Mateo Lozano, Oscar
2014-01-08 17:20 ` Damien Lespiau
1 sibling, 1 reply; 4+ messages in thread
From: Mateo Lozano, Oscar @ 2014-01-08 17:13 UTC (permalink / raw)
To: Lespiau, Damien, intel-gfx@lists.freedesktop.org; +Cc: Davies, Devon
> -----Original Message-----
> From: intel-gfx-bounces@lists.freedesktop.org [mailto:intel-gfx-
> bounces@lists.freedesktop.org] On Behalf Of devon.davies@intel.com
> Sent: Wednesday, January 08, 2014 4:07 PM
> To: intel-gfx@lists.freedesktop.org
> Cc: Davies, Devon
> Subject: [Intel-gfx] [PATCH] build: Added -UNDEBUG to tools/Android.mk
>
> From: Devon Davies <devon.davies@intel.com>
>
> NDEBUG is defined by default in Android and causes assert(x) to be defined as
> void(x). This change ensures that asserts work as expected in tools.
>
> This flag is already inside tests/Android.mk
I discussed and agreed to Devon´s solution with him before, so:
Reviewed-by: Oscar Mateo <oscar.mateo@intel.com>
> Signed-off-by: Devon Davies <devon.davies@intel.com>
> ---
> tools/Android.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/Android.mk b/tools/Android.mk index 4a19b6c..5bda489
> 100644
> --- a/tools/Android.mk
> +++ b/tools/Android.mk
> @@ -40,7 +40,7 @@ define add_tool
>
> LOCAL_CFLAGS += -DHAVE_TERMIOS_H
> LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
> - LOCAL_CFLAGS += -DANDROID
> + LOCAL_CFLAGS += -DANDROID -UNDEBUG
> LOCAL_CFLAGS += -std=c99
> # FIXME: drop once Bionic correctly annotates "noreturn" on pthread_exit
> LOCAL_CFLAGS += -Wno-error=return-type
> --
> 1.7.9.5
>
> ---------------------------------------------------------------------
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] build: Added -UNDEBUG to tools/Android.mk
2014-01-08 17:13 ` Mateo Lozano, Oscar
@ 2014-01-08 17:20 ` Damien Lespiau
0 siblings, 0 replies; 4+ messages in thread
From: Damien Lespiau @ 2014-01-08 17:20 UTC (permalink / raw)
To: Mateo Lozano, Oscar; +Cc: Davies, Devon, intel-gfx@lists.freedesktop.org
On Wed, Jan 08, 2014 at 05:13:28PM +0000, Mateo Lozano, Oscar wrote:
> > -----Original Message-----
> > From: intel-gfx-bounces@lists.freedesktop.org [mailto:intel-gfx-
> > bounces@lists.freedesktop.org] On Behalf Of devon.davies@intel.com
> > Sent: Wednesday, January 08, 2014 4:07 PM
> > To: intel-gfx@lists.freedesktop.org
> > Cc: Davies, Devon
> > Subject: [Intel-gfx] [PATCH] build: Added -UNDEBUG to tools/Android.mk
> >
> > From: Devon Davies <devon.davies@intel.com>
> >
> > NDEBUG is defined by default in Android and causes assert(x) to be defined as
> > void(x). This change ensures that asserts work as expected in tools.
> >
> > This flag is already inside tests/Android.mk
>
> I discussed and agreed to Devon´s solution with him before, so:
> Reviewed-by: Oscar Mateo <oscar.mateo@intel.com>
Thanks for the patch and review, pushed.
--
Damien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-08 17:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08 16:07 [PATCH] build: Added -UNDEBUG to tools/Android.mk devon.davies
2014-01-08 16:27 ` Damien Lespiau
2014-01-08 17:13 ` Mateo Lozano, Oscar
2014-01-08 17:20 ` Damien Lespiau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox