From c92f430e9cb70826e9d42f984c1562715dfe0ba9 Mon Sep 17 00:00:00 2001 From: Isabel Paredes Date: Fri, 31 Jan 2025 14:27:31 +0100 Subject: [PATCH] Fix r-stringi (#1834) --- recipes/recipes_emscripten/r-stringi/build.sh | 7 +++++++ recipes/recipes_emscripten/r-stringi/recipe.yaml | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 recipes/recipes_emscripten/r-stringi/build.sh diff --git a/recipes/recipes_emscripten/r-stringi/build.sh b/recipes/recipes_emscripten/r-stringi/build.sh new file mode 100644 index 000000000..40f915e10 --- /dev/null +++ b/recipes/recipes_emscripten/r-stringi/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# build and host are needed to enable cross-compilation +# The environment LDFLAGS are ignored by the configure script +export CONFIG_ARGS="--prefix=$PREFIX --build=x86_64-conda-linux-gnu --host=wasm32-unknown-emscripten --with-extra-ldflags=-sWASM_BIGINT" + +R CMD INSTALL $R_ARGS --configure-args="$CONFIG_ARGS" --no-byte-compile . diff --git a/recipes/recipes_emscripten/r-stringi/recipe.yaml b/recipes/recipes_emscripten/r-stringi/recipe.yaml index 34e85aa7d..1f94f7221 100644 --- a/recipes/recipes_emscripten/r-stringi/recipe.yaml +++ b/recipes/recipes_emscripten/r-stringi/recipe.yaml @@ -10,8 +10,7 @@ source: sha256: c219f8f64d1a2bfd4ca9528452d44d30db1899af14f4b9ef248412443bc669f3 build: - number: 0 - script: $R CMD INSTALL $R_ARGS --no-byte-compile . + number: 1 outputs: - package: