Skip to content

Commit

Permalink
adde node env (#1232)
Browse files Browse the repository at this point in the history
* adde node env

adde node env

* Update recipe.yaml

* adde node env

* Update recipe.yaml

* Update build.sh

* Update recipe.yaml
  • Loading branch information
DerThorsten authored Jul 22, 2024
1 parent e8b4804 commit f9ddf75
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion recipes/recipes_emscripten/cockle_fs/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
touch fs.c
emcc fs.c -o fs.js \
-sALLOW_MEMORY_GROWTH=1 \
-sENVIRONMENT=web,worker \
-sENVIRONMENT=web,worker,node \
-sEXPORTED_RUNTIME_METHODS=FS,PATH,ERRNO_CODES,PROXYFS \
-sFORCE_FILESYSTEM=1 \
-sMODULARIZE=1 \
Expand Down
2 changes: 1 addition & 1 deletion recipes/recipes_emscripten/cockle_fs/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
context:
version: 0.1.0
version: 0.2.0

package:
name: cockle_fs
Expand Down
4 changes: 2 additions & 2 deletions recipes/recipes_emscripten/coreutils/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ emconfigure ./configure \

echo "sed"
sed -i 's|$(MAKE) src/make-prime-list$(EXEEXT)|gcc src/make-prime-list.c -o src/make-prime-list$(EXEEXT) -Ilib/|' Makefile
export CFLAGS="-O2 --minify=0 -sALLOW_MEMORY_GROWTH=1 -sENVIRONMENT=web,worker -sEXPORTED_RUNTIME_METHODS=callMain,FS,ENV,getEnvStrings -sFORCE_FILESYSTEM=1 -sINVOKE_RUN=0 -sMODULARIZE=1 -sSINGLE_FILE=1"
export CFLAGS="-O2 --minify=0 -sALLOW_MEMORY_GROWTH=1 -sENVIRONMENT=web,worker,node -sEXPORTED_RUNTIME_METHODS=callMain,FS,ENV,getEnvStrings -sFORCE_FILESYSTEM=1 -sINVOKE_RUN=0 -sMODULARIZE=1 -sSINGLE_FILE=1"

make EXEEXT=.js CFLAGS="$CFLAGS" -k -j4 || true

Expand All @@ -24,4 +24,4 @@ ls
ls src/coreutils.js

mkdir -p $PREFIX/bin
cp src/coreutils.js $PREFIX/bin/coreutils.js
cp src/coreutils.js $PREFIX/bin/coreutils.js
2 changes: 1 addition & 1 deletion recipes/recipes_emscripten/coreutils/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
git: https://github.com/coreutils/coreutils
tag: v9.5
build:
number: 0
number: 1

requirements:
build:
Expand Down
2 changes: 1 addition & 1 deletion recipes/recipes_emscripten/grep/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ emconfigure ./configure \
ac_cv_have_decl_alarm=no \
gl_cv_func_sleep_works=yes

export CFLAGS="-O2 --minify=0 -sALLOW_MEMORY_GROWTH=1 -sENVIRONMENT=web,worker -sEXPORTED_RUNTIME_METHODS=callMain,FS,ENV,getEnvStrings -sFORCE_FILESYSTEM=1 -sINVOKE_RUN=0 -sMODULARIZE=1 -sSINGLE_FILE=1 -sERROR_ON_UNDEFINED_SYMBOLS=0"
export CFLAGS="-O2 --minify=0 -sALLOW_MEMORY_GROWTH=1 -sENVIRONMENT=web,worker,node -sEXPORTED_RUNTIME_METHODS=callMain,FS,ENV,getEnvStrings -sFORCE_FILESYSTEM=1 -sINVOKE_RUN=0 -sMODULARIZE=1 -sSINGLE_FILE=1 -sERROR_ON_UNDEFINED_SYMBOLS=0"
emmake make all CFLAGS="$CFLAGS" EXEEXT=.js

ls
Expand Down
2 changes: 1 addition & 1 deletion recipes/recipes_emscripten/grep/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package:
# url: https://github.com/Distrotech/grep
# branch:
build:
number: 0
number: 1

requirements:
build:
Expand Down

0 comments on commit f9ddf75

Please sign in to comment.