Skip to content

Commit

Permalink
Generate object code
Browse files Browse the repository at this point in the history
  • Loading branch information
IsabelParedes committed Jun 4, 2024
1 parent 5613e19 commit cab5c0f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipes/recipes_emscripten/lapack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ mkdir -p $PREFIX/include

export EMSDK_PATH=${EMSCRIPTEN_FORGE_EMSDK_DIR}
export LDFLAGS="$LDFLAGS -fno-optimize-sibling-calls"
# export FFLAGS="$FFLAGS --fno-optimize-sibling-calls"
export FFLAGS="$FFLAGS \
--target=wasm32-unknown-emscripten \
--generate-object-code \
--fixed-form-infer \
--implicit-interface"

# CMAKE_INSTALL_LIBDIR="lib" suppresses CentOS default of lib64 (conda expects lib)

Expand All @@ -25,7 +29,7 @@ emcmake cmake .. \
-DBUILD_COMPLEX16=no \
-DLAPACKE_WITH_TMG=no \
-DCMAKE_Fortran_PREPROCESS=yes \
-DCMAKE_Fortran_FLAGS="--target=wasm32-unknown-emscripten --fixed-form-infer --implicit-interface" \
-DCMAKE_Fortran_FLAGS="" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_INSTALL_PREFIX=$PREFIX

Expand Down

0 comments on commit cab5c0f

Please sign in to comment.