[ovs-dev] [PATCH 2/2] cccl: Enable compiler optimization by default.

Gurucharan Shetty shettyg at nicira.com
Thu Aug 28 16:39:26 UTC 2014


There is no 1-1 mapping between gcc's compiler optimization
flags and MSVC's optimization flags making the automatic
conversions trickier.

This commit adds the /O2 option which is the recommended
option for fast code.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 build-aux/cccl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-aux/cccl b/build-aux/cccl
index c18629a..eb4d2aa 100644
--- a/build-aux/cccl
+++ b/build-aux/cccl
@@ -45,7 +45,7 @@ esac
 # We'll assume cl to start out
 prog=cl
 # opts specifies the command line to pass to the MSVC program
-clopt="${slash}nologo ${slash}FS"
+clopt="${slash}nologo ${slash}FS ${slash}O2"
 linkopt="${slash}nologo"
 # gotparam is 0 if we didn't ever see a param, in which case we show usage()
 gotparam=
-- 
1.7.9.5




More information about the dev mailing list