Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions recipes/recipes_emscripten/xtensor-blas/patches/shared.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/include/xtensor-blas/xblas_config_cling.hpp.in b/include/xtensor-blas/xblas_config_cling.hpp.in
index cbe4f13..f2f2689 100644
--- a/include/xtensor-blas/xblas_config_cling.hpp.in
+++ b/include/xtensor-blas/xblas_config_cling.hpp.in
@@ -26,7 +26,7 @@

#include <clang/Interpreter/CppInterOp.h>
static bool _openblas_loaded = []() {
- Cpp::LoadLibrary(@OPENBLAS_CPPINTEROP_LIBRARY_PATH@, false);
+ Cpp::LoadLibrary("/lib/@CMAKE_SHARED_LIBRARY_PREFIX@openblas@CMAKE_SHARED_LIBRARY_SUFFIX@", false);
return true;
}();

4 changes: 3 additions & 1 deletion recipes/recipes_emscripten/xtensor-blas/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ package:
source:
url: https://github.com/xtensor-stack/xtensor-blas/archive/${{ version }}.tar.gz
sha256: 3411f56d243b92a22fe3a259bc8b414d851ab167b9d30700a1776c9908e0b595
patches:
- patches/shared.patch

build:
number: 0
number: 1

requirements:
build:
Expand Down