git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] ci(visual-studio): use strict compile flags, and optimization

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Oct 20, 2019, 20:39 UTC
Message-ID
<6fba3b1c76d6e28c1ef4fd6c933bd73531e6cb7e.1571603970.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.410.git.1571603970.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>

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>
---
 azure-pipelines.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 9f099b9529..457c6fee31 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -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
-- 
gitgitgadget
Previous: Eric SunshineNext: Johannes Schindelin via GitGitGadget
Message 4 of 9 in “Fix the speed of the CI (Visual Studio) tests”
  1. 0/2 Fix the speed of the CI (Visual Studio) testsJohannes Schindelin via GitGitGadget, Oct 20, 2019
  2. 2/2 ci(visual-studio): actually run the tests in parallelJohannes Schindelin via GitGitGadget, Oct 20, 2019
  3. Eric SunshineOct 20, 2019
  4. 1/2 ci(visual-studio): use strict compile flags, and optimizationJohannes Schindelin via GitGitGadget, Oct 20, 2019
  5. 0/2 Fix the speed of the CI (Visual Studio) testsJohannes Schindelin via GitGitGadget, Oct 21, 2019
  6. 1/2 ci(visual-studio): use strict compile flags, and optimizationJohannes Schindelin via GitGitGadget, Oct 21, 2019
  7. 2/2 ci(visual-studio): actually run the tests in parallelJohannes Schindelin via GitGitGadget, Oct 21, 2019
  8. Junio C HamanoOct 23, 2019
  9. Johannes SchindelinOct 24, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.