build-aux/cccl: Enhance --with-debug option
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Mon, 30 Mar 2015 15:34:28 +0000 (15:34 +0000)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 30 Mar 2015 17:08:34 +0000 (10:08 -0700)
commit0d42597cd1b9fa32fdfc6c033c97d28c09087b57
tree7dc86a24f14bee5a65e5cc10d79aff5a7e875ab3
parent4e5e44e30133939b792a013a812c84f564ffa8aa
build-aux/cccl: Enhance --with-debug option

This patch changes the behaviour in case the configure argument: --with-debug
was specified.

Currently the optimization flag in the case of debugging is the following:
https://msdn.microsoft.com/en-us/library/f9534wye.aspx
which does not fully disable optimization, that is why it was changed with
the following flag:
https://msdn.microsoft.com/en-us/library/aafb762y.aspx
which disables all code optimization.

Also this patch includes the definition of the following preprocessor
definitions:
_DEBUG - in case --with-debug is specified

The above definitions usually are defined when compiling with the following
flags:
https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
Since we are not compiling with the above flag, mimic the behaviour the
debug becahviour.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
build-aux/cccl