From 9f06dbd6157f4daabb9fbad617a9e02fca7193a6 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 20 Mar 2019 15:17:07 +0100 Subject: [PATCH] Added a mention of ASAN in the wiki --- doc/How to build - Linux et al.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/How to build - Linux et al.md b/doc/How to build - Linux et al.md index cf7bc86f2..14ec23b2d 100644 --- a/doc/How to build - Linux et al.md +++ b/doc/How to build - Linux et al.md @@ -58,11 +58,20 @@ Note that Slic3r PE is tested with wxWidgets 3.0 somewhat sporadically and so th ### Build variant -By default Scli3r builds the release variant. +By default Slic3r builds the release variant. To create a debug build, use the following CMake flag: -DCMAKE_BUILD_TYPE=Debug +### Enabling address sanitizer + +If you're using GCC/Clang compiler, it is possible to build Slic3r with the built-in address sanitizer enabled to help detect memory-corruption issues. +To enable it, simply use the following CMake flag: + + -DSLIC3R_ASAN=1 + +This requires GCC>4.8 or Clang>3.1. + ### Installation At runtime, Slic3r needs a way to access its resource files. By default, it looks for a `resources` directory relative to its binary.