Disable fetching/building of C++ specific things

This commit is contained in:
Martin Storsjö authored and Martin Storsjo committed 2016-08-10 00:02:07 +03:00
1 parent aa65ed4547
commit 5e1fbce075
1 file changed
+33 -33
+33 -33
View File
@@ -21,10 +21,10 @@ RUN cd llvm/tools && \
git clone -b release_38 --depth=1 https://github.com/llvm-mirror/clang.git && \ git clone -b release_38 --depth=1 https://github.com/llvm-mirror/clang.git && \
git clone --depth=1 -b release_38 https://github.com/llvm-mirror/lld.git --depth=1 git clone --depth=1 -b release_38 https://github.com/llvm-mirror/lld.git --depth=1
RUN cd llvm/projects && \ #RUN cd llvm/projects && \
git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libcxx.git && \ # git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libcxx.git && \
git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libcxxabi.git && \ # git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libcxxabi.git && \
git clone https://github.com/llvm-mirror/libunwind.git -b release_38 --depth=1 # git clone https://github.com/llvm-mirror/libunwind.git -b release_38 --depth=1
RUN cd llvm/tools/clang && \ RUN cd llvm/tools/clang && \
git am /build/patches/clang-*.patch git am /build/patches/clang-*.patch
@@ -32,8 +32,8 @@ RUN cd llvm/tools/clang && \
RUN cd llvm/tools/lld && \ RUN cd llvm/tools/lld && \
git am /build/patches/lld-*.patch git am /build/patches/lld-*.patch
RUN cd llvm/projects/libcxx && \ #RUN cd llvm/projects/libcxx && \
git am /build/patches/libcxx-*.patch # git am /build/patches/libcxx-*.patch
RUN git clone --depth=1 git://git.code.sf.net/p/mingw-w64/mingw-w64 RUN git clone --depth=1 git://git.code.sf.net/p/mingw-w64/mingw-w64
RUN cd mingw-w64 && \ RUN cd mingw-w64 && \
@@ -124,40 +124,40 @@ RUN cd /build/mingw-w64/mingw-w64-tools/widl && \
make -j4 && \ make -j4 && \
make install make install
RUN git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libcxx.git && \ #RUN git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libcxx.git && \
git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libcxxabi.git && \ # git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libcxxabi.git && \
git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libunwind.git # git clone -b release_38 --depth=1 https://github.com/llvm-mirror/libunwind.git
RUN cd libcxx && \ #RUN cd libcxx && \
git am /build/patches/libcxx-*.patch # git am /build/patches/libcxx-*.patch
RUN cd libunwind && \ #RUN cd libunwind && \
git am /build/patches/libunwind-*.patch # git am /build/patches/libunwind-*.patch
RUN cd libunwind && mkdir build && cd build && \ #RUN cd libunwind && mkdir build && cd build && \
CXXFLAGS="-nodefaultlibs -D_LIBUNWIND_IS_BAREMETAL" \ # CXXFLAGS="-nodefaultlibs -D_LIBUNWIND_IS_BAREMETAL" \
LDFLAGS="/build/prefix/armv7-w64-mingw32/lib/crt2.o /build/prefix/armv7-w64-mingw32/lib/crtbegin.o -lmingw32 /build/prefix/bin/../lib/clang/3.8.1/lib/windows/libclang_rt.builtins-arm.a -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 /build/prefix/armv7-w64-mingw32/lib/crtend.o" \ # LDFLAGS="/build/prefix/armv7-w64-mingw32/lib/crt2.o /build/prefix/armv7-w64-mingw32/lib/crtbegin.o -lmingw32 /build/prefix/bin/../lib/clang/3.8.1/lib/windows/libclang_rt.builtins-arm.a -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 /build/prefix/armv7-w64-mingw32/lib/crtend.o" \
cmake \ # cmake \
-DCMAKE_CXX_COMPILER_WORKS=TRUE \ # -DCMAKE_CXX_COMPILER_WORKS=TRUE \
-DLLVM_ENABLE_LIBCXX=TRUE \ # -DLLVM_ENABLE_LIBCXX=TRUE \
-DCMAKE_BUILD_TYPE=Release \ # -DCMAKE_BUILD_TYPE=Release \
-DLIBUNWIND_ENABLE_SHARED=OFF \ # -DLIBUNWIND_ENABLE_SHARED=OFF \
.. # ..
#RUN cd libunwind/build && make -j4 #RUN cd libunwind/build && make -j4
#RUN cd libunwind/build && make install #RUN cd libunwind/build && make install
RUN cd libcxx && mkdir build && cd build && \ #RUN cd libcxx && mkdir build && cd build && \
CXXFLAGS="-nodefaultlibs -D_GNU_SOURCE -D_LIBCPP_HAS_NO_CONSTEXPR" \ # CXXFLAGS="-nodefaultlibs -D_GNU_SOURCE -D_LIBCPP_HAS_NO_CONSTEXPR" \
LDFLAGS="/build/prefix/armv7-w64-mingw32/lib/crt2.o /build/prefix/armv7-w64-mingw32/lib/crtbegin.o -lmingw32 /build/prefix/bin/../lib/clang/3.8.1/lib/windows/libclang_rt.builtins-arm.a -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 /build/prefix/armv7-w64-mingw32/lib/crtend.o" \ # LDFLAGS="/build/prefix/armv7-w64-mingw32/lib/crt2.o /build/prefix/armv7-w64-mingw32/lib/crtbegin.o -lmingw32 /build/prefix/bin/../lib/clang/3.8.1/lib/windows/libclang_rt.builtins-arm.a -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 /build/prefix/armv7-w64-mingw32/lib/crtend.o" \
cmake \ # cmake \
-DCMAKE_CXX_COMPILER_WORKS=TRUE \ # -DCMAKE_CXX_COMPILER_WORKS=TRUE \
-DLIBCXX_ENABLE_SHARED=OFF \ # -DLIBCXX_ENABLE_SHARED=OFF \
-DCMAKE_BUILD_TYPE=Release \ # -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/build/prefix" \ # -DCMAKE_INSTALL_PREFIX="/build/prefix" \
.. && \ # .. && \
make -j8 && \ # make -j8 && \
make install # make install
RUN mkdir gaspp && cd gaspp && \ RUN mkdir gaspp && cd gaspp && \
wget -q https://raw.githubusercontent.com/libav/gas-preprocessor/master/gas-preprocessor.pl && \ wget -q https://raw.githubusercontent.com/libav/gas-preprocessor/master/gas-preprocessor.pl && \