Skip to content

Commit

Permalink
Export functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Mar 16, 2021
1 parent bf5eae4 commit 9fbffda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ emmake make
# If the project output is a library, you may need to add your 'main.c' file
# here as well.
# [-Ox] represents build optimisations (discussed in the next section).
emcc -O3 lib/*.a -o highs.js
emcc -O3 \
-s EXPORTED_FUNCTIONS="@$(pwd)/exported_functions.json" \
-s EXPORT_ES6=1 -s MODULARIZE=1 \
lib/*.a -o highs.js
3 changes: 3 additions & 0 deletions build/exported_functions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"_Highs_call"
]

0 comments on commit 9fbffda

Please sign in to comment.