diff --git a/projects/llvm_libcxx/Dockerfile b/projects/llvm_libcxx/Dockerfile index 5777a4caf..389b3653c 100644 --- a/projects/llvm_libcxx/Dockerfile +++ b/projects/llvm_libcxx/Dockerfile @@ -14,6 +14,5 @@ # ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder -RUN svn co http://llvm.org/svn/llvm-project/libcxxabi/trunk libcxxabi -RUN svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx +RUN git clone --depth 1 https://github.com/llvm/llvm-project.git COPY build.sh $SRC/ diff --git a/projects/llvm_libcxx/build.sh b/projects/llvm_libcxx/build.sh index 961a912f2..6cea2f8a4 100755 --- a/projects/llvm_libcxx/build.sh +++ b/projects/llvm_libcxx/build.sh @@ -15,6 +15,8 @@ # ################################################################################ +cd llvm-project + if [[ $SANITIZER = *undefined* ]]; then CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fsanitize-trap=unsigned-integer-overflow" fi