[llvm-commits] [compiler-rt] r170695 - in /compiler-rt/trunk/lib/tsan: Makefile.old check_cmake.sh

David Blaikie dblaikie at gmail.com
Thu Dec 20 09:14:16 PST 2012


On Thu, Dec 20, 2012 at 6:10 AM, Dmitry Vyukov <dvyukov at google.com> wrote:
> Author: dvyukov
> Date: Thu Dec 20 08:10:27 2012
> New Revision: 170695
>
> URL: http://llvm.org/viewvc/llvm-project?rev=170695&view=rev
> Log:
> tsan: add cmake build and tests into presubmit script
>
> Added:
>     compiler-rt/trunk/lib/tsan/check_cmake.sh   (with props)
> Modified:
>     compiler-rt/trunk/lib/tsan/Makefile.old
>
> Modified: compiler-rt/trunk/lib/tsan/Makefile.old
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/Makefile.old?rev=170695&r1=170694&r2=170695&view=diff
> ==============================================================================
> --- compiler-rt/trunk/lib/tsan/Makefile.old (original)
> +++ compiler-rt/trunk/lib/tsan/Makefile.old Thu Dec 20 08:10:27 2012
> @@ -73,6 +73,8 @@
>         ./check_analyze.sh
>         # Sanity check for Go runtime
>         (cd go && ./buildgo.sh)
> +       # Check cmake build
> +       ./check_cmake.sh
>         @ echo PRESUBMIT PASSED
>
>  install_deps:
>
> Added: compiler-rt/trunk/lib/tsan/check_cmake.sh
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/check_cmake.sh?rev=170695&view=auto
> ==============================================================================
> --- compiler-rt/trunk/lib/tsan/check_cmake.sh (added)
> +++ compiler-rt/trunk/lib/tsan/check_cmake.sh Thu Dec 20 08:10:27 2012
> @@ -0,0 +1,11 @@
> +#!/bin/bash
> +set -u
> +set -e
> +
> +ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
> +mkdir -p $ROOT/build
> +cd $ROOT/build
> +CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON $ROOT/../../../..

Any particular reason you're explicitly specifying gcc as the compiler
here? The general suggestion/original issue was that a clang + cmake +
werror build was not done & so I hit a break in that build. This
change would still not catch that.

> +make -j64
> +make check-tsan check-sanitizer -j64
> +
>
> Propchange: compiler-rt/trunk/lib/tsan/check_cmake.sh
> ------------------------------------------------------------------------------
>     svn:executable = *
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list