@@ -19,6 +19,7 @@ FROM ubuntu:18.04@sha256:8aa9c2798215f99544d1ce7439ea9c3a6dfd82de607da1cec3a8a2f
1919ENV DEBIAN_FRONTEND=noninteractive
2020RUN apt-get update -y --fix-missing
2121RUN apt-get install -y ruby ruby-dev rubygems build-essential
22+ RUN gem install dotenv -v 2.8.1
2223RUN gem install --no-document fpm
2324
2425RUN apt-get install -y bison build-essential flex git libedit-dev lsb \
@@ -177,6 +178,42 @@ RUN /scripts/build_llvm.sh \
177178 --sysroot /sysroots/x86_64 \
178179 --target_arch x86_64
179180
181+ # x86_64 sysroot with ASAN instrumentation.
182+ RUN /scripts/build_llvm.sh \
183+ --llvm_git_repo "${LLVM_GIT_PATH}" \
184+ --c_compiler_path "${CLANG}" \
185+ --cxx_compiler_path "${CLANGPP}" \
186+ --install_dir /opt/llvm-15.0-libcxx-x86_64-sysroot-asan \
187+ --build_type llvm_libs \
188+ --target_libcxx_path /opt/libcxx-15.0-x86_64-sysroot \
189+ --sysroot /sysroots/x86_64 \
190+ --target_arch x86_64 \
191+ --build_with_asan
192+
193+ # x86_64 sysroot with MSAN instrumentation.
194+ RUN /scripts/build_llvm.sh \
195+ --llvm_git_repo "${LLVM_GIT_PATH}" \
196+ --c_compiler_path "${CLANG}" \
197+ --cxx_compiler_path "${CLANGPP}" \
198+ --install_dir /opt/llvm-15.0-libcxx-x86_64-sysroot-msan \
199+ --build_type llvm_libs \
200+ --target_libcxx_path /opt/libcxx-15.0-x86_64-sysroot \
201+ --sysroot /sysroots/x86_64 \
202+ --target_arch x86_64 \
203+ --build_with_msan
204+
205+ # x86_64 sysroot with TSAN instrumentation.
206+ RUN /scripts/build_llvm.sh \
207+ --llvm_git_repo "${LLVM_GIT_PATH}" \
208+ --c_compiler_path "${CLANG}" \
209+ --cxx_compiler_path "${CLANGPP}" \
210+ --install_dir /opt/llvm-15.0-libcxx-x86_64-sysroot-tsan \
211+ --build_type llvm_libs \
212+ --target_libcxx_path /opt/libcxx-15.0-x86_64-sysroot \
213+ --sysroot /sysroots/x86_64 \
214+ --target_arch x86_64 \
215+ --build_with_tsan
216+
180217# aarch64 sysroot
181218RUN /scripts/build_llvm.sh \
182219 --llvm_git_repo "${LLVM_GIT_PATH}" \
0 commit comments