[infra] build static libc++ only

This commit is contained in:
Mike Aizatsky 2016-08-16 12:55:32 -07:00
parent c9f6190beb
commit b580229493
1 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ RUN cd /src/llvm/projects && git clone --depth 1 http://llvm.org/git/lld.git
RUN mkdir -p /work/llvm
WORKDIR /work/llvm
RUN cmake -G "Ninja" \
-DLIBCXX_ENABLE_SHARED=OFF -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
-DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="X86" \
/src/llvm
RUN ninja
@ -59,7 +60,8 @@ ENV CXXFLAGS "$CFLAGS $CXXFLAGS_EXTRA"
RUN mkdir -p /work/llvm-msan
WORKDIR /work/llvm-msan
RUN cmake -G "Ninja" \
-DCMAKE_BUILD_TYPE=Release -DLLVM_USE_SANITIZER=Memory \
-DLIBCXX_ENABLE_SHARED=OFF -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
-DCMAKE_BUILD_TYPE=Release -DLLVM_USE_SANITIZER=Memory \
/src/llvm
RUN ninja cxx cxxabi
RUN mkdir /usr/local/lib/msan