From 0d42597cd1b9fa32fdfc6c033c97d28c09087b57 Mon Sep 17 00:00:00 2001 From: Alin Serdean Date: Mon, 30 Mar 2015 15:34:28 +0000 Subject: [PATCH] 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 Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- build-aux/cccl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/cccl b/build-aux/cccl index 2a4dccc52..456292e5f 100644 --- a/build-aux/cccl +++ b/build-aux/cccl @@ -90,7 +90,7 @@ EOF ;; -O0) - clopt="$clopt ${slash}Ot" + clopt="$clopt ${slash}Od ${slash}D_DEBUG" ;; -O2) -- 2.20.1