diff options
author | Daniel Wirtz <dcode@dcode.io> | 2019-11-14 01:01:49 +0100 |
---|---|---|
committer | Alon Zakai <azakai@google.com> | 2019-11-13 16:01:49 -0800 |
commit | 1bb8862042eface18bdd876096c7ee67296061c2 (patch) | |
tree | 285f3b13edb9cadf1529ab25b8a2bf87b6380cc6 /.gitattributes | |
parent | 24bb5d83b1b877638053a5f8761ab8372aeeeac9 (diff) | |
download | binaryen-1bb8862042eface18bdd876096c7ee67296061c2.tar.gz binaryen-1bb8862042eface18bdd876096c7ee67296061c2.tar.bz2 binaryen-1bb8862042eface18bdd876096c7ee67296061c2.zip |
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.
Diffstat (limited to '.gitattributes')
-rw-r--r-- | .gitattributes | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..dfdb8b771 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf |