Skip to content

Commit

Permalink
cpp14 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bcjaeger committed Oct 12, 2023
1 parent 8504a3c commit 25b1e5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.1.0
Date: 2023-10-12 00:32:23 UTC
SHA: 65cf27efc6b936f9a599c679fd833a142c6d6a4d
Date: 2023-10-12 03:47:48 UTC
SHA: 8504a3cc7b87142ebabef93939a8812883e14725
5 changes: 5 additions & 0 deletions src/AAA_check_cpp_version.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#ifndef WIN_R_BUILD
#if __cplusplus < 201402L
#error Error: aorsf requires a C++14 compiler, e.g., gcc >= 5 or Clang >= 3.4. You probably have to update your C++ compiler.
#endif
#endif
1 change: 0 additions & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
CXX_STD = CXX14
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
2 changes: 1 addition & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CXX_STD = CXX14
PKG_CPPFLAGS = -DWIN_R_BUILD
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

0 comments on commit 25b1e5f

Please sign in to comment.