@@ -123,13 +123,14 @@ rm -rf /tmp/*
123123EOF
124124
125125# Explicitly set the compiler flags, as well as a custom flag that specifies the
126- # distribution name and version . This is important to avoid conflicts between
127- # builds using the same compiler but different distribution versions.
126+ # compiler and distro names and versions . This is important to avoid conflicts
127+ # between builds using different compilers and/or different distro versions.
128128RUN <<EOF
129129cat >> $(conan config home)/global.conf <<EOT
130130tools.build:compiler_executables={"c" : "${CC}" , "cpp" : "${CXX}" }
131- user.package:distro="ubuntu-${UBUNTU_VERSION}"
132- tools.info.package_id:confs=["user.package:distro" ]
131+ user.package:compiler="gcc-${GCC_VERSION}"
132+ user.package:distro="debian-${DEBIAN_VERSION}"
133+ tools.info.package_id:confs=["user.package:compiler" , "user.package:distro" ]
133134EOT
134135EOF
135136
@@ -209,13 +210,14 @@ rm -rf /tmp/*
209210EOF
210211
211212# Explicitly set the compiler flags, as well as a custom flag that specifies the
212- # distribution name and version . This is important to avoid conflicts between
213- # builds using the same compiler but different distribution versions.
213+ # compiler and distro names and versions . This is important to avoid conflicts
214+ # between builds using different compilers and/or different distro versions.
214215RUN <<EOF
215216cat >> $(conan config home)/global.conf <<EOT
216217tools.build:compiler_executables={"c" : "${CC}" , "cpp" : "${CXX}" }
217- user.package:distro="ubuntu-${UBUNTU_VERSION}"
218- tools.info.package_id:confs=["user.package:distro" ]
218+ user.package:compiler="clang-${CLANG_VERSION}"
219+ user.package:distro="debian-${DEBIAN_VERSION}"
220+ tools.info.package_id:confs=["user.package:compiler" , "user.package:distro" ]
219221EOT
220222EOF
221223
0 commit comments