From 4f23a7c288f8bb7dc246f5468dd44dfb1e76f542 Mon Sep 17 00:00:00 2001 From: paradajz <2544094+paradajz@users.noreply.github.com> Date: Thu, 17 Nov 2022 17:52:09 +0100 Subject: [PATCH] dockerfile: don't hardcode clang version when installing infer --- .devcontainer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index c759a81f7..553778ca6 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -87,7 +87,7 @@ cd /opt && \ wget ${WGET_ARGS} https://github.com/facebook/infer/releases/download/v1.1.0/infer-linux64-v1.1.0.tar.xz && \ tar -xf infer-linux64-v1.1.0.tar.xz && \ rm infer-linux64-v1.1.0.tar.xz && \ -cp /lib/clang/15.0.4/lib/linux/libclang_rt.profile-x86_64.a /opt/infer-linux64-v1.1.0/lib/infer/facebook-clang-plugins/clang/install/lib/clang/11.1.0/lib/linux +cp $(find /lib/clang -mindepth 1 -maxdepth 1 -type d | sort -r | head -1)/lib/linux/libclang_rt.profile-x86_64.a /opt/infer-linux64-v1.1.0/lib/infer/facebook-clang-plugins/clang/install/lib/clang/11.1.0/lib/linux ENV PATH="/opt/infer-linux64-v1.1.0/bin:/opendeck-deps/arduino-1.8.19/hardware/tools/avr/bin:/opendeck-deps/gcc-arm-none-eabi-10.3-2021.10/bin:$PATH"