diff options
author | David Barksdale <amatus@amat.us> | 2018-01-26 22:38:02 -0600 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2018-01-26 22:38:02 -0600 |
commit | 0fdddc32842077a03f0ef8c47d47b89b73cb86a7 (patch) | |
tree | 82d43c9bc8f7002c56ac02a4f3191bfbbf176690 /gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules | |
parent | 8f537a8039423a2a82a0427b844a5229ed1f2f5e (diff) |
Update emscripten and nodejs
Diffstat (limited to 'gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules')
-rw-r--r-- | gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules b/gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules index ee7ba32..6032f13 100644 --- a/gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules +++ b/gnunet-build/packages/build-utils/emscripten-fastcomp/Buildrules @@ -1,14 +1,29 @@ -VERSION="1.35.9" +VERSION="1.37.28" DESCRIPTION="LLVM with the emscripten fastcomp javascript backend." SOURCE_URI=" git://github.com/kripken/${NAME}.git?${VERSION}&archive=${NAME}-${VERSION}.${ARCHIVE_FORMAT} git://github.com/kripken/${NAME}-clang.git?${VERSION}&archive=${NAME}-clang-${VERSION}.${ARCHIVE_FORMAT} " -CONFIG_OPTS="--enable-optimized --disable-assertions --enable-targets=host,js" pkg_prep() { mv "${W}/${NAME}-clang-${VERSION}" "${S}/tools/clang" } +pkg_compile() { + mkdir "${S}/build" + cd "${S}/build" + cmake -G "Unix Makefiles" \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_TARGETS_TO_BUILD="X86;JSBackend" \ + -DLLVM_INCLUDE_EXAMPLES=OFF \ + -DLLVM_INCLUDE_TESTS=OFF \ + -DCLANG_INCLUDE_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX="${SYSROOT}/${TOOLDIR}" \ + "${S}" + make "${MAKE_OPTS}" + make DESTDIR="${D}" install + toolchain_fixup "${D}" +} + # vim: syntax=sh |