Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-package] use C++17 in the CRAN package #5690

Merged
merged 14 commits into from
Mar 7, 2023
Prev Previous commit
Next Next commit
fall back to C++11 on R 3.6 on Windows
  • Loading branch information
jameslamb committed Jan 28, 2023
commit b240330f77e66325b3bf47f8f5474d8b53255b52
10 changes: 5 additions & 5 deletions R-package/configure.win
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ cpp17_supported="yes"
if test "${CXX17}" = "";
then
cpp17_supported="no"
CXX14=`"${R_EXE}" CMD config CXX14`
CXX14STD=`"${R_EXE}" CMD config CXX14STD`
CXX="${CXX14} ${CXX14STD}"
CXXFLAGS=`"${R_EXE}" CMD config CXX14FLAGS`
CXX_STD="CXX14"
CXX11=`"${R_EXE}" CMD config CXX11`
CXX11STD=`"${R_EXE}" CMD config CXX11STD`
CXX="${CXX11} ${CXX11STD}"
CXXFLAGS=`"${R_EXE}" CMD config CXX11FLAGS`
CXX_STD="CXX11"
fi
echo "checking whether C++17 is supported...${cpp17_supported}"

Expand Down