File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,13 +165,22 @@ jobs:
165165 libharfbuzz-dev \
166166 libfribidi-dev
167167
168- - name : Force C++17 (R 4.0 )
169- if : matrix.config.r == '4.0' && runner.os == 'Linux'
168+ - name : Force C++17 and Large Memory Model (Linux )
169+ if : runner.os == 'Linux' && ( matrix.config.r == '4.0' || matrix.config.r == 'devel')
170170 run : |
171171 mkdir -p ~/.R
172- echo "CXX14STD = -std=gnu++17" >> ~/.R/Makevars
173- echo "CXX17STD = -std=gnu++17" >> ~/.R/Makevars
172+ echo "CXXFLAGS += -mcmodel=large" >> ~/.R/Makevars
173+ echo "CXX11FLAGS += -mcmodel=large" >> ~/.R/Makevars
174+ echo "CXX14FLAGS += -mcmodel=large" >> ~/.R/Makevars
175+ echo "CXX17FLAGS += -mcmodel=large" >> ~/.R/Makevars
174176 echo "PKG_LIBS += -mcmodel=large" >> ~/.R/Makevars
177+
178+ # Maintain R 4.0 specific standard overrides
179+ if [[ "${{ matrix.config.r }}" == "4.0" ]]; then
180+ echo "CXX14STD = -std=gnu++17" >> ~/.R/Makevars
181+ echo "CXX17STD = -std=gnu++17" >> ~/.R/Makevars
182+ fi
183+ shell : bash
175184
176185 - name : Install vdiffr dependencies (R 4.0)
177186 if : matrix.config.r == '4.0' && runner.os == 'Linux'
You can’t perform that action at this time.
0 commit comments