Skip to content

Commit 2c9dd71

Browse files
committed
Updated Makevars.wasm
1 parent 0244d30 commit 2c9dd71

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: cubature
22
Type: Package
33
Title: Adaptive Multivariate Integration over Hypercubes
4-
Version: 2.1.4-4
4+
Version: 2.1.4-5
55
VignetteBuilder: knitr
66
SystemRequirements: GNU make and USE_C17
77
URL: https://bnaras.github.io/cubature/

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# cubature 2.1.4-5
2+
3+
- Modified `Makevars.wasm`
4+
15
# cubature 2.1.4-4
26

37
- Modified `configure.guess`

src/Makevars.wasm

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,29 @@ R_INC_FLAG=-I"$(R_INCLUDE_DIR)"
55
PKG_CPPFLAGS=-I. -I../inst/include -I../../inst/include -I./src/common -D_R_INTERFACE
66
PKG_LIBS=-L./$(CUBATURE_DIR) -L./$(CUBA_DIR) -lcubature -lcuba
77

8+
$(info *** USING MAKEVARS.WASM ***)
9+
10+
CC = emcc
11+
CXX = em++
12+
AR = emar
13+
RANLIB = emranlib
14+
815
$(SHLIB): Rcpp-cubature.o Rcpp-Cuba.o RcppExports.o cubature_init.o
916

1017
Rcpp-cubature.o: cubature.ts
1118
RcppExports.o: cuba.ts cubature.ts
1219
Rcpp-Cuba.o: cuba.ts
1320

1421
cubature.ts:
22+
@echo "Compiling $< with $(CC)"
1523
((cd $(CUBATURE_DIR) && \
1624
($(MAKE) libcubature.a CC="$(CC)" CFLAGS="$(CPPFLAGS) $(PKG_CPPFLAGS) $(R_INC_FLAG) $(CFLAGS) $(CPICFLAGS)" AR="$(AR)" RANLIB="$(RANLIB)")) && \
1725
touch $@)
1826

1927
cuba.ts:
28+
@echo "Compiling $< with $(CC)"
2029
((cd $(CUBA_DIR) && \
21-
./configure --build=wasm32-unknown-emscripten --host=wasm32-unknown-emscripten $(R_CONFIGURE_FLAGS) && \
30+
./configure $(R_CONFIGURE_FLAGS) && \
2231
$(MAKE) libcuba.a CC="$(CC)" CFLAGS="$(CPPFLAGS) $(PKG_CPPFLAGS) $(R_INC_FLAG) $(CFLAGS) $(CPICFLAGS)" AR="$(AR)" ARFLAGS="-rv" RANLIB="$(RANLIB)") && \
2332
touch $@)
2433

0 commit comments

Comments
 (0)