[ovs-dev] [PATCH] build-aux/cccl: Enhance --with-debug option
Alin Serdean
aserdean at cloudbasesolutions.com
Mon Mar 30 13:45:33 UTC 2015
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
NDEBUG - in case --with-debug was not 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 flags mimic the behaviour.
Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
build-aux/cccl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build-aux/cccl b/build-aux/cccl
index 2a4dccc..5f30dd8 100644
--- a/build-aux/cccl
+++ b/build-aux/cccl
@@ -90,11 +90,11 @@ EOF
;;
-O0)
- clopt="$clopt ${slash}Ot"
+ clopt="$clopt ${slash}Od ${slash}D_DEBUG"
;;
-O2)
- clopt="$clopt ${slash}O2"
+ clopt="$clopt ${slash}O2 ${slash}DNDEBUG"
;;
-L*)
--
1.9.5.msysgit.0
More information about the dev
mailing list