From 2fe5ee7dc0d1dd3a2bc0d4ef65af149d5fd2f85c Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 11 Nov 2014 10:13:10 -0800 Subject: Fix a funny ASAN bug --- Makefile.in | 2 +- tools/debug-debug-scripts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 8254bc2..0002153 100644 --- a/Makefile.in +++ b/Makefile.in @@ -414,7 +414,7 @@ clean-obj: clean-conf: $l rm -rf conf-raw mostlyclean: clean-conf - $l rm -rf obj + $l rm -rf obj stamp clean: mostlyclean $l rm -rf bin lib distclean: clean gen-clean diff --git a/tools/debug-debug-scripts b/tools/debug-debug-scripts index 0ddf998..7cb91d9 100755 --- a/tools/debug-debug-scripts +++ b/tools/debug-debug-scripts @@ -99,6 +99,8 @@ def main(args): print('// just mention "fwd.hpp" and "../poison.hpp" to make formatter happy', file=w) print('namespace tmwa', file=w) print('{', file=w) + print(' void do_nothing_asan_is_funny_global_constructor();', file=w) + print(' void do_nothing_asan_is_funny_global_constructor() {}', file=w) print('} // namespace tmwa', file=w) print(file=w) print('template', file=w) -- cgit v1.2.3-60-g2f50