Skip to content

Commit

Permalink
Fix build on R-3.6 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 6, 2024
1 parent 2aa4237 commit 1834929
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- {os: macOS-13, r: 'release'}
- {os: macOS-14, r: 'release'}
- {os: macOS-latest, r: 'release', disable-static: 'disable-static'}
- {os: windows-latest, r: '3.6'}
- {os: windows-latest, r: '4.0'}
- {os: windows-latest, r: '4.1'}
- {os: windows-latest, r: '4.2'}
Expand Down
4 changes: 3 additions & 1 deletion src/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ static v8::MaybeLocal<v8::Promise> ResolveDynamicModuleCallback(
#if V8_VERSION_TOTAL >= 908
v8::Local<v8::Data> host_defined_options,
v8::Local<v8::Value> resource_name,
#else
#elif V8_VERSION_TOTAL >= 603
v8::Local<v8::ScriptOrModule> referrer,
#else
v8::Local<v8::String> referrer,
#endif
v8::Local<v8::String> specifier
FixedArrayParam
Expand Down
2 changes: 1 addition & 1 deletion tools/legacy.win
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION = 6.2.414.50-vista
CXX_STD = CXX11
RWINLIB =../windows/libv8-$(VERSION)
PKG_CPPFLAGS = -I$(RWINLIB)/include -DV8_ENABLE_CHECKS
PKG_CPPFLAGS = -I$(RWINLIB)/include -DV8_ENABLE_CHECKS -DISNODEJS=6.2
PKG_LIBS = \
-L$(RWINLIB)/lib${subst gcc ,-,${R_COMPILED_BY}}${R_ARCH} \
-L$(RWINLIB)/lib${R_ARCH} \
Expand Down

0 comments on commit 1834929

Please sign in to comment.