File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ jobs:
127127 if : matrix.os == 'windows-latest'
128128 shell : powershell
129129 run : |
130+ echo "Detecting STL version using $env:CXX"
131+
130132 $cxx_version = & $env:CXX -dM -E -x c++ NUL 2>$null | Select-String '_MSC_VER' | ForEach-Object {
131133 if ($_ -match '_MSC_VER\s+(\d+)') {
132134 "msvc$($matches[1])"
@@ -139,7 +141,9 @@ jobs:
139141 if : matrix.os != 'windows-latest'
140142 shell : bash
141143 run : |
142- cxx_version = $(
144+ echo "Detecting STL version using $CXX"
145+
146+ CXX_VERSION = $(
143147 $CXX -dM -E -x c++ /dev/null 2>/dev/null | \
144148 grep -E '__GLIBCXX__|_LIBCPP_VERSION' | \
145149 awk '
@@ -151,7 +155,7 @@ jobs:
151155 }'
152156 )
153157
154- echo "CXX_VERSION=$cxx_version " >> $GITHUB_ENV
158+ echo "CXX_VERSION=$CXX_VERSION " >> $GITHUB_ENV
155159
156160 - name : Define version
157161 shell : python
You can’t perform that action at this time.
0 commit comments