]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci(visual-studio): use strict compile flags, and optimization
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 21 Oct 2019 19:59:57 +0000 (19:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Oct 2019 02:02:57 +0000 (11:02 +0900)
To make full use of the work that went into the Visual Studio build &
test jobs in our CI/PR builds, let's turn on strict compiler flags. This
will give us the benefit of Visual C's compiler warnings (which, at
times, seem to catch things that GCC does not catch, and vice versa).

While at it, also turn on optimization; It does not make sense to
produce binaries with debug information, and we can use any ounce of
speed that we get (because the test suite is particularly slow on
Windows, thanks to the need to run inside a Unix shell, which
requires us to use the POSIX emulation layer provided by MSYS2).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
azure-pipelines.yml

index 875e63cac1ba7c6c12e85c22a39cce3f4e68d9d0..0c28e00026cba9050b2374f1b83b43e293e1e868 100644 (file)
@@ -157,7 +157,7 @@ jobs:
     displayName: 'Download git-sdk-64-minimal'
   - powershell: |
       & git-sdk-64-minimal\usr\bin\bash.exe -lc @"
-        make vcxproj
+        make NDEBUG=1 DEVELOPER=1 vcxproj
       "@
       if (!$?) { exit(1) }
     displayName: Generate Visual Studio Solution