From 1bb8862042eface18bdd876096c7ee67296061c2 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Thu, 14 Nov 2019 01:01:49 +0100 Subject: Reuse BINARYEN_API for Emscripten builds (#2435) This is an alternative to #2361 in that it only implements reusing BINARYEN_API so we don't have to list all the functions in build-js.sh. Differs in that it keeps the sh file relatively straight forward without going overboard with bash functionality. Also adds various quotes in case of whitespace in paths and makes it so that *.sh files always use LF line endings to ease Windows support. For instance, I am pulling the repository in Windows but compile in WSL, which, if Git isn't properly configured to check out line endings as-is, would otherwise break the sh files. Fixes #2361. --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes (limited to '.gitattributes') diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..dfdb8b771 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf -- cgit v1.2.3