File tree Expand file tree Collapse file tree 3 files changed +11
-17
lines changed
Expand file tree Collapse file tree 3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 138138RUN sed -i -e 's|^compiler\. cppstd=.*$|compiler.cppstd=20|' ~/.conan2/profiles/default
139139# Explicitly set the compiler flags.
140140RUN <<EOF
141- cat >>~/.conan2/profiles/default <<EOT
142- [conf]
141+ cat >> $(conan config home)/global.conf <<EOT
143142tools.build:compiler_executables={"c" : "${CC}" , "cpp" : "${CXX}" }
144143EOT
145144EOF
@@ -217,12 +216,11 @@ RUN sed -i -e 's|^compiler\.cppstd=.*$|compiler.cppstd=20|' ~/.conan2/profiles/d
217216RUN <<EOF
218217CXX_VER=$(${CXX} -dumpversion)
219218CXX_VER=${CXX_VER%%.*}
220- cat >>~/.conan2/profiles/default <<EOT
221- [conf]
219+ cat >> $(conan config home)/global.conf <<EOT
222220tools.build:compiler_executables={"c" : "${CC}" , "cpp" : "${CXX}" }
223221EOT
224222if [[ ${CXX_VER} -ge 19 ]]; then
225- cat >>~/.conan2/profiles/default <<EOT
223+ cat >> $(conan config home)/global.conf <<EOT
226224tools.build:cxxflags=['-Wno-missing-template-arg-list-after-template-kw' ]
227225EOT
228226fi
Original file line number Diff line number Diff line change 101101RUN sed -i -e 's|^compiler\. cppstd=.*$|compiler.cppstd=20|' ${CONAN_HOME}/profiles/default
102102# Explicitly set the compiler flags.
103103RUN <<EOF
104- cat >>${CONAN_HOME}/profiles/default <<EOT
105- [conf]
104+ cat >> $(conan config home)/global.conf <<EOT
106105tools.build:compiler_executables={"c" : "${CC}" , "cpp" : "${CXX}" }
107106EOT
108107EOF
@@ -117,7 +116,7 @@ std::string f() { return "_" + std::string(" "); }
117116EOT
118117${CXX} -std=c++20 -Wall -Werror -O3 -c main.cpp || touch fail
119118if [[ -f fail ]]; then
120- cat >>~/.conan2/profiles/default <<EOT
119+ cat >> $(conan config home)/global.conf <<EOT
121120tools.build:cxxflags=['-Wno-restrict' ]
122121EOT
123122fi
@@ -189,12 +188,11 @@ RUN sed -i -e 's|^compiler\.cppstd=.*$|compiler.cppstd=20|' ${CONAN_HOME}/profil
189188RUN <<EOF
190189CXX_VER=$(${CXX} -dumpversion)
191190CXX_VER=${CXX_VER%%.*}
192- cat >>${CONAN_HOME}/profiles/default <<EOT
193- [conf]
191+ cat >> $(conan config home)/global.conf <<EOT
194192tools.build:compiler_executables={"c" : "${CC}" , "cpp" : "${CXX}" }
195193EOT
196194if [[ ${CXX_VER} -ge 19 ]]; then
197- cat >>${CONAN_HOME}/profiles/default <<EOT
195+ cat >> $(conan config home)/global.conf <<EOT
198196tools.build:cxxflags=['-Wno-missing-template-arg-list-after-template-kw' ]
199197EOT
200198fi
Original file line number Diff line number Diff line change 118118RUN sed -i -e 's|^compiler\. cppstd=.*$|compiler.cppstd=20|' ~/.conan2/profiles/default
119119# Explicitly set the compiler flags.
120120RUN <<EOF
121- cat >>~/.conan2/profiles/default <<EOT
122- [conf]
121+ cat >> $(conan config home)/global.conf <<EOT
123122tools.build:compiler_executables={"c" : "${CC}" , "cpp" : "${CXX}" }
124123EOT
125124EOF
@@ -134,7 +133,7 @@ std::string f() { return "_" + std::string(" "); }
134133EOT
135134${CXX} -std=c++20 -Wall -Werror -O3 -c main.cpp || touch fail
136135if [[ -f fail ]]; then
137- cat >>~/.conan2/profiles/default <<EOT
136+ cat >> $(conan config home)/global.conf <<EOT
138137tools.build:cxxflags=['-Wno-restrict' ]
139138EOT
140139fi
@@ -210,12 +209,11 @@ RUN sed -i -e 's|^compiler\.cppstd=.*$|compiler.cppstd=20|' ~/.conan2/profiles/d
210209RUN <<EOF
211210CXX_VER=$(${CXX} -dumpversion)
212211CXX_VER=${CXX_VER%%.*}
213- cat >>~/.conan2/profiles/default <<EOT
214- [conf]
212+ cat >> $(conan config home)/global.conf <<EOT
215213tools.build:compiler_executables={"c" : "${CC}" , "cpp" : "${CXX}" }
216214EOT
217215if [[ ${CXX_VER} -ge 19 ]]; then
218- cat >>~/.conan2/profiles/default <<EOT
216+ cat >> $(conan config home)/global.conf <<EOT
219217tools.build:cxxflags=['-Wno-missing-template-arg-list-after-template-kw' ]
220218EOT
221219fi
You can’t perform that action at this time.
0 commit comments