Last active
April 12, 2018 17:14
-
-
Save tnishinaga/ae2b39c615a759bbcd760c1d0f7c3448 to your computer and use it in GitHub Desktop.
LLDB build docker image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NPROCS=`nproc` | |
WORKDIR=/root/workdir/ | |
cd $WORKDIR | |
mkdir $WORKDIR/build | |
cd $WORKDIR/build | |
# use shared library | |
cmake ../llvm -G Ninja -DLLDB_EXPORT_ALL_SYMBOLS=1 -DCMAKE_BUILD_TYPE=Debug -DLLVM_PARALLEL_COMPILE_JOBS=$NPROCS -DLLVM_PARALLEL_LINK_JOBS=$NPROCS | |
# use static link | |
#cmake ../llvm -G Ninja -DLLDB_EXPORT_ALL_SYMBOLS=1 -DCMAKE_BUILD_TYPE=Debug -DLLVM_PARALLEL_COMPILE_JOBS=$NPROCS -DLLVM_PARALLEL_LINK_JOBS=$NPROCS -DLLVM_LINK_LLVM_DYLIB=1 | |
ninja lldb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for lldb build on arch linux | |
FROM base/archlinux | |
RUN pacman -Syu | |
RUN pacman -S --noconfirm git swig cmake doxygen graphviz llvm clang lldb python2 ninja lld cmake epydoc | |
# for debug | |
RUN pacman -S --noconfirm ltrace | |
RUN mkdir ~/workdir | |
CMD /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
WORKDIR=~/workdir | |
sudo docker build -t lldbbuild . | |
mkdir $WORKDIR | |
cp build.sh $WORKDIR | |
cd $WORKDIR | |
git clone --depth=1 https://git.llvm.org/git/llvm.git/ | |
cd llvm/tools | |
git clone --depth=1 -q https://llvm.org/git/lldb.git | |
git clone --depth=1 -q https://git.llvm.org/git/clang.git | |
sudo docker run -v $WORKDIR:/root/workdir -it lldbbuild /bin/sh /root/workdir/build.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment