Skip to content

Commit

Permalink
test(ses): create shellscript to run hermesc on any OS
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm committed Jul 31, 2024
1 parent 1247f64 commit 5d4a919
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/ses/scripts/hermesc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

OS="$(uname -s)"

case "$OS" in
Linux*)
OS_DIR="linux64-bin"
;;
Darwin*)
OS_DIR="osx-bin"
;;
CYGWIN*|MINGW*|MSYS*)
OS_DIR="win64-bin"
;;
*)
echo "Unsupported OS: $OS"
exit 1
;;
esac

HERMESC="../../node_modules/hermes-engine-cli/$OS_DIR/hermesc"

$HERMESC -emit-binary -out test/hermes-smoke.hbc test/hermes-smoke.js

0 comments on commit 5d4a919

Please sign in to comment.