File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 8080
8181using td::Ref;
8282
83+ extern " C" const char * __asan_default_options () {
84+ return " detect_leaks=0" ;
85+ }
86+
8387int verbosity;
8488
8589enum { wc_master = -1 , wc_base = 0 };
Original file line number Diff line number Diff line change 5252#include " git.h"
5353#include " words.h"
5454
55+ extern " C" const char * __asan_default_options () {
56+ return " detect_leaks=0" ;
57+ }
58+
5559void usage (const char * progname) {
5660 std::cerr << " A simple Fift interpreter. Type `bye` to quit, or `words` to get a list of all commands\n " ;
5761 std::cerr
Original file line number Diff line number Diff line change 3535#include " func.h"
3636#include " git.h"
3737
38+ extern " C" const char * __asan_default_options () {
39+ return " detect_leaks=0" ;
40+ }
41+
3842void usage (const char * progname) {
3943 std::cerr
4044 << " usage: " << progname
Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ if (NOT CMAKE_CROSSCOMPILING)
6363 foreach (tl_scheme lite_api ton_api tonlib_api)
6464 add_custom_command (
6565 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /scheme
66- COMMAND $<TARGET_FILE:tl-parser> -e "${tl_scheme} .tlo" "${tl_scheme} .tl"
66+ COMMAND
67+ ${CMAKE_COMMAND} -E env ASAN_OPTIONS=detect_leaks=0
68+ $<TARGET_FILE:tl-parser> -e "${tl_scheme} .tlo" "${tl_scheme} .tl"
6769 DEPENDS tl-parser "scheme/${tl_scheme} .tl"
6870 OUTPUT "${CMAKE_CURRENT_SOURCE_DIR} /scheme/${tl_scheme} .tlo"
6971 )
You can’t perform that action at this time.
0 commit comments