Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add documentation on how to use ASAN packages on Windows

Dmitry Kazakovae81f6928326
diff --git a/README.md b/README.md
index ba38fd656c..2a9429485b 100644
--- a/README.md
+++ b/README.md
@@ -86,6 +86,28 @@ https://www.krita.org
```
6) Run the AppImage in the modified environment
+##### Windows build with ASAN in Qt and Krita
+
+1) Go to Jobs section of Krita's CI: https://invent.kde.org/graphics/krita/-/jobs
+2) Search for the latest `windows-asan-weekly` job
+3) Enter the job and click on Artifacts->Browse
+4) Download the .zip file
+5) Open terminal
+6) Set up environment variable for ASAN:
+ ```
+ set ASAN_OPTIONS=new_delete_type_mismatch=0:detect_leaks=0
+ ```
+7) Change working directory to `c:\path\where\you\downloaded\krita-5.3.0-prealpha-git12345\bin`.
+ That is important, otherwise ASAN will not be able to locate llvm-symbolizer.exe and the
+ backtraces generated by ASAN will not contain proper symbols.
+ ```
+ cd c:\path\where\you\downloaded\krita-5.3.0-prealpha-git12345\bin
+ ```
+8) Run krita
+ ```
+ krita.com
+ ```
+
### License
Krita as a whole is licensed under the GNU Public License, Version 3. Individual files may have a different, but compatible license.