Added build script stuff.
This commit is contained in:
parent
55893909f0
commit
ee55878b18
11
contrib/builder/Dockerfile
Normal file
11
contrib/builder/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM debian:sid-slim
|
||||
RUN apt-get -y update && \
|
||||
apt-get -y upgrade && \
|
||||
apt-get -y install build-essential clang-16 gcc-13 g++-13 python3 python3-pip \
|
||||
virtualenv python-is-python3 clang-tidy git ninja-build cmake
|
||||
RUN ln -s /usr/bin/clang-16 /usr/local/bin/clang \
|
||||
&& ln -s /usr/bin/clang++-16 /usr/local/bin/clang++ \
|
||||
&& ln -s /usr/bin/clang-tidy-16 /usr/local/bin/clang-tidy \
|
||||
&& ln -s /usr/bin/run-clang-tidy-16 /usr/local/bin/run-clang-tidy
|
||||
|
||||
COPY scripts /opt/scripts
|
||||
9
contrib/builder/scripts/build_clang.sh
Normal file
9
contrib/builder/scripts/build_clang.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -xe
|
||||
python -m virtualenv venv
|
||||
source venv/bin/activate
|
||||
pip install scons
|
||||
pip install -r external/scons-plus-plus/requirements.txt
|
||||
scons -j$(nproc) --build_type=debug --variant=linux_clang_debug --compiler=clang
|
||||
scons -j$(nproc) --build_type=release_debug --variant=linux_clang_release_debug --compiler=clang
|
||||
scons -j$(nproc) --build_type=release --variant=linux_clang_release --compiler=clang
|
||||
Loading…
x
Reference in New Issue
Block a user