Skip to content

Commit cf01179

Browse files
Merge pull request #64 from HighlanderLab:gregorgorjanc/issue63
Setting C++20 as standard to fix CRAN windows issue
2 parents 15a4612 + b2e8ae3 commit cf01179

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

RcppTskit/src/Makevars.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ RCPPTSKIT_LDFLAGS =
5959
PKG_CFLAGS = $(RCPPTSKIT_CFLAGS)
6060
PKG_CXXFLAGS = $(RCPPTSKIT_CXXFLAGS)
6161

62+
# core.h:__tsk_nan_f requires C++20 on CRAN/Windows, but see #63
63+
CXX_STD = CXX20
64+
6265
# Explicit compile rule for tskit C files
6366
tskit/%.o: tskit/%.c
6467
$(CC) $(ALL_CPPFLAGS) $(PKG_CFLAGS) $(CFLAGS) $(CPICFLAGS) -c $< -o $@

0 commit comments

Comments
 (0)