[compiler-rt] r189010 - [lsan] Build standalone LSan with -fno-rtti.

Alexey Samsonov samsonov at google.com
Thu Aug 22 06:46:39 PDT 2013


Can you add a C sanity check lit-test (that would verify that C program
compiles and links fine with LSan and LSan + ASan)? See
sanity_check_pure_c.c in ASan test suite.


On Thu, Aug 22, 2013 at 5:23 PM, Sergey Matveev <earthdok at google.com> wrote:

> Author: smatveev
> Date: Thu Aug 22 08:23:22 2013
> New Revision: 189010
>
> URL: http://llvm.org/viewvc/llvm-project?rev=189010&view=rev
> Log:
> [lsan] Build standalone LSan with -fno-rtti.
>
> Fix issue where C code could not be built with -fsanitize=leak.
>
> Modified:
>     compiler-rt/trunk/lib/lsan/CMakeLists.txt
>     compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt
>
> Modified: compiler-rt/trunk/lib/lsan/CMakeLists.txt
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/CMakeLists.txt?rev=189010&r1=189009&r2=189010&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/lsan/CMakeLists.txt (original)
> +++ compiler-rt/trunk/lib/lsan/CMakeLists.txt Thu Aug 22 08:23:22 2013
> @@ -1,7 +1,8 @@
>  include_directories(..)
>
>  set(LSAN_CFLAGS
> -  ${SANITIZER_COMMON_CFLAGS})
> +  ${SANITIZER_COMMON_CFLAGS}
> +  -fno-rtti)
>
>  set(LSAN_COMMON_SOURCES
>    lsan_common.cc
>
> Modified: compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt?rev=189010&r1=189009&r2=189010&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt (original)
> +++ compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt Thu Aug 22 08:23:22
> 2013
> @@ -9,7 +9,7 @@ set(LSAN_TESTS_SRC
>    lsan_dummy_unittest.cc)
>
>  set(LSAN_TESTS_CFLAGS
> -  ${LSAN_CFLAGS}
> +  ${SANITIZER_COMMON_CFLAGS}
>    ${COMPILER_RT_GTEST_INCLUDE_CFLAGS}
>    -I${COMPILER_RT_SOURCE_DIR}/lib
>    -I${LSAN_SRC_DIR})
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130822/7b464de7/attachment.html>


More information about the llvm-commits mailing list