diff options
author | 2016-03-21 11:45:15 -0700 | |
---|---|---|
committer | 2016-03-21 11:45:15 -0700 | |
commit | fb6e13b1b5ba135220c7be1edf3fb6f92e79872b (patch) | |
tree | 2f57667a3603855d23f423df9923ccf652e50860 /tools | |
parent | b08ee7a260d0f274554892cd3138215ab905ce77 (diff) | |
parent | f4e25643665f139ad8abd05d066f313e4f16a743 (diff) |
Merge pull request #5788 from vjpai/make_clang_great_again_v2
Update clang for the Dockerfile used in tsan tests, fix a newly exposed bug
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dockerfile/test/cxx_jessie_x64/Dockerfile | 33 | ||||
-rw-r--r-- | tools/run_tests/tests.json | 8 |
2 files changed, 35 insertions, 6 deletions
diff --git a/tools/dockerfile/test/cxx_jessie_x64/Dockerfile b/tools/dockerfile/test/cxx_jessie_x64/Dockerfile index e3ed39dfe6..b848f233b7 100644 --- a/tools/dockerfile/test/cxx_jessie_x64/Dockerfile +++ b/tools/dockerfile/test/cxx_jessie_x64/Dockerfile @@ -67,6 +67,39 @@ RUN apt-get update && apt-get install -y time && apt-get clean # C++ dependencies RUN apt-get update && apt-get -y install libgflags-dev libgtest-dev libc++-dev clang && apt-get clean +#================= +# Update clang to a version with improved tsan + +RUN apt-get update && apt-get -y install python cmake && apt-get clean + +RUN git clone -n -b release_38 http://llvm.org/git/llvm.git && \ + cd llvm && git checkout ad57503 && cd .. +RUN git clone -n -b release_38 http://llvm.org/git/clang.git && \ + cd clang && git checkout ad2c56e && cd .. +RUN git clone -n -b release_38 http://llvm.org/git/compiler-rt.git && \ + cd compiler-rt && git checkout 3176922 && cd .. +RUN git clone -n -b release_38 \ + http://llvm.org/git/clang-tools-extra.git && cd clang-tools-extra && \ + git checkout c288525 && cd .. +RUN git clone -n -b release_38 http://llvm.org/git/libcxx.git && \ + cd libcxx && git checkout fda3549 && cd .. +RUN git clone -n -b release_38 http://llvm.org/git/libcxxabi.git && \ + cd libcxxabi && git checkout 8d4e51d && cd .. + +RUN mv clang llvm/tools +RUN mv compiler-rt llvm/projects +RUN mv clang-tools-extra llvm/tools/clang/tools +RUN mv libcxx llvm/projects +RUN mv libcxxabi llvm/projects + +RUN mkdir llvm-build +RUN cd llvm-build && cmake \ + -DCMAKE_BUILD_TYPE:STRING=Release \ + -DCMAKE_INSTALL_PREFIX:STRING=/usr \ + -DLLVM_TARGETS_TO_BUILD:STRING=X86 \ + ../llvm +RUN make -C llvm-build && make -C llvm-build install && rm -rf llvm-build + # Prepare ccache RUN ln -s /usr/bin/ccache /usr/local/bin/gcc RUN ln -s /usr/bin/ccache /usr/local/bin/g++ diff --git a/tools/run_tests/tests.json b/tools/run_tests/tests.json index 6c6de6a594..bd652f2aa7 100644 --- a/tools/run_tests/tests.json +++ b/tools/run_tests/tests.json @@ -2317,9 +2317,7 @@ "posix" ], "cpu_cost": 0.5, - "exclude_configs": [ - "tsan" - ], + "exclude_configs": [], "flaky": false, "gtest": false, "language": "c++", @@ -2338,9 +2336,7 @@ "posix" ], "cpu_cost": 10, - "exclude_configs": [ - "tsan" - ], + "exclude_configs": [], "flaky": false, "gtest": false, "language": "c++", |