[PATCH] D115103: Leak Sanitizer port to Windows

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 6 16:06:51 PST 2022


aganea added a comment.

It does work indeed. I am running under a "x64 Native Tools Command Prompt for VS 2019" prompt with MSVC 16.11.8.

  D:\git\llvm-project>mkdir release && cd release
  D:\git\llvm-project\release>cmake ../llvm -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lld;llvm;compiler-rt" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PDB=ON -DLLVM_ENABLE_ASSERTIONS=ON
  ...
  D:\git\llvm-project\release>ninja check-asan
  ninja: Entering directory `release'
  [0/1] Running the AddressSanitizer tests
  -- Testing: 669 tests, 16 workers --
  Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
  
  Testing Time: 86.33s
    Unsupported      : 229
    Passed           : 426
    Expectedly Failed:  14

However you might need some Unix tools that don't come out-of-the-box on Windows.
You could first install the scoop <https://scoop.sh/> package manager and then install any tool that you need:

  D:\git\llvm-project>powershell
  ...
  D:\git\llvm-project [main ↓9 +10 ~0 -0 !]> iwr -useb get.scoop.sh | iex
  ...
  D:\git\llvm-project [main ↓9 +10 ~0 -0 !]> scoop install coreutils grep make sed unxutils sysinternals

And then run `ninja check-asan` again.

If you install `sysinternals` with scoop above, you can run `procexp64` prior to `ninja check-asan`. That will give a much finer view on the running processes, as compared to the Task Manager. Let me know if I can help further.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115103/new/

https://reviews.llvm.org/D115103



More information about the cfe-commits mailing list