File tree Expand file tree Collapse file tree
recipes/recipes/flang_emscripten-wasm32 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# # Using flang as a WASM cross-compiler
44# # https://github.com/serge-sans-paille/llvm-project/blob/feature/flang-wasm/README.wasm.md
55# # https://github.com/conda-forge/flang-feedstock/pull/69
6- micromamba install -p $BUILD_PREFIX \
7- conda-forge/label/emscripten::flang==$PKG_VERSION \
8- -y --no-channel-priority
6+ if [ ! -f " $BUILD_PREFIX /bin/flang-new" ]; then
7+ micromamba install -p $BUILD_PREFIX \
8+ conda-forge/label/emscripten::flang==$PKG_VERSION \
9+ llvm20==$PKG_VERSION \
10+ -y --no-channel-priority
11+ fi
912
1013export FC=flang-new
1114export F77=flang-new
@@ -16,6 +19,7 @@ export FLANG=flang-new
1619
1720export FFLAGS=" --target=wasm32-unknown-emscripten"
1821export FPICFLAGS=" -fPIC"
22+ export FCLIBS=" -lFortranRuntime"
1923
2024rm $BUILD_PREFIX /bin/clang || true
21- ln -s $BUILD_PREFIX /bin/clang-20 $BUILD_PREFIX /bin/clang # links to emsdk clang
25+ ln -s $BUILD_PREFIX /bin/clang-20 $BUILD_PREFIX /bin/clang # links to emsdk clang
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ unset F18
88unset FLANG
99unset FFLAGS
1010unset FPICFLAGS
11+ unset FCLIBS
Original file line number Diff line number Diff line change 11context :
22 name : flang_emscripten-wasm32
3- version : 19 .1.7
3+ version : 20 .1.7
44
55package :
66 name : ${{ name }}
77 version : ${{ version }}
88
99build :
10- number : 2
10+ number : 0
1111
1212requirements :
1313 build :
You can’t perform that action at this time.
0 commit comments