pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/wasi-compiler-rt
Module Name: pkgsrc
Committed By: ryoon
Date: Sun Dec 19 14:05:53 UTC 2021
Added Files:
pkgsrc/lang/wasi-compiler-rt: DESCR Makefile PLIST buildlink3.mk
Log Message:
lang/wasi-compiler-rt: import wasi-compiler-rt-13.0.0
compiler-rt library for WebAssembly programs built on top of WASI
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/wasi-compiler-rt/DESCR \
pkgsrc/lang/wasi-compiler-rt/Makefile pkgsrc/lang/wasi-compiler-rt/PLIST \
pkgsrc/lang/wasi-compiler-rt/buildlink3.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/lang/wasi-compiler-rt/DESCR
diff -u /dev/null pkgsrc/lang/wasi-compiler-rt/DESCR:1.1
--- /dev/null Sun Dec 19 14:05:53 2021
+++ pkgsrc/lang/wasi-compiler-rt/DESCR Sun Dec 19 14:05:53 2021
@@ -0,0 +1 @@
+compiler-rt library for WebAssembly programs built on top of WASI
Index: pkgsrc/lang/wasi-compiler-rt/Makefile
diff -u /dev/null pkgsrc/lang/wasi-compiler-rt/Makefile:1.1
--- /dev/null Sun Dec 19 14:05:53 2021
+++ pkgsrc/lang/wasi-compiler-rt/Makefile Sun Dec 19 14:05:53 2021
@@ -0,0 +1,68 @@
+# $NetBSD: Makefile,v 1.1 2021/12/19 14:05:53 ryoon Exp $
+
+.include "../../lang/llvm/version.mk"
+
+DISTNAME= compiler-rt-${LLVM_VERSION}.src
+PKGNAME= ${DISTNAME:S/.src//:S/compiler-rt-/wasi-compiler-rt-/}
+CATEGORIES= lang devel
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://compiler-rt.llvm.org/
+COMMENT= LLVM runtime libraries for WASI/WebAssembly
+LICENSE= apache-2.0
+
+PATCHDIR= ${.CURDIR}/../../lang/compiler-rt/patches
+DISTINFO_FILE= ${.CURDIR}/../../lang/compiler-rt/distinfo
+
+NOT_FOR_PLATFORM= NetBSD-[0-7].*-*
+
+USE_CMAKE= yes
+USE_LANGUAGES= c99 c++11
+USE_TOOLS+= ggrep
+SSP_SUPPORTED= no
+
+CONFIGURE_DIRS= ../build
+CMAKE_ARG_PATH= ${WRKSRC}/lib/builtins
+
+BUILDLINK_TRANSFORM+= rm:-I/usr/include
+BUILDLINK_TRANSFORM+= rm:-I${PREFIX}/include
+
+CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE=1
+
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+= -DCMAKE_C_COMPILER=${PREFIX}/bin/clang
+CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${PREFIX}/bin/clang++
+CMAKE_ARGS+= -DCOMPILER_RT_TEST_COMPILER=${PREFIX}/bin/clang
+CMAKE_ARGS+= -DCOMPILER_RT_OS_DIR:STRING=wasi
+CMAKE_ARGS+= -DLLVM_CONFIG_PATH=${LLVM_CONFIG_PATH:Q}
+CMAKE_ARGS+= -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=wasm32-wasi
+CMAKE_ARGS+= -DCOMPILER_RT_BAREMETAL_BUILD=TRUE
+CMAKE_ARGS+= -DCMAKE_SYSROOT=${PREFIX}/wasi
+CMAKE_ARGS+= -DCOMPILER_RT_BAREMETAL_BUILD=TRUE
+CMAKE_ARGS+= -DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=TRUE
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_FPIC_FLAG:BOOL=ON
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_FPIE_FLAG:BOOL=ON
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_FNO_BUILTIN_FLAG:BOOL=ON
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_STD_C11_FLAG:BOOL=ON
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG:BOOL=ON
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_FREESTANDING_FLAG:BOOL=ON
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_XRAY_COMPILER_FLAG:BOOL=OFF
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_ATOMIC_KEYWORD:BOOL=ON
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_FLOAT16:BOOL=OFF
+CMAKE_ARGS+= -DCOMPILER_RT_HAS_ASM_LSE:BOOL=OFF
+CMAKE_ARGS+= -DCMAKE_C_COMPILER_WORKS=1 # Do not test clang compile
+CMAKE_ARGS+= -DCMAKE_CXX_COMPILER_WORKS=1 # Do not test clang++ compile
+
+CMAKE_INSTALL_PREFIX= ${PREFIX}/lib/clang/13.0.0
+
+post-extract:
+ ${MKDIR} ${WRKDIR}/build
+
+PKGSRC_COMPILER= clang
+PKG_CC= ${PREFIX}/bin/clang
+PKG_CXX= ${PREFIX}/bin/clang++
+BUILDLINK_DEPMETHOD.clang= build
+.include "../../lang/clang/buildlink3.mk"
+.include "../../lang/llvm/buildlink3.mk"
+.include "../../lang/wasi-libc/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/lang/wasi-compiler-rt/PLIST
diff -u /dev/null pkgsrc/lang/wasi-compiler-rt/PLIST:1.1
--- /dev/null Sun Dec 19 14:05:53 2021
+++ pkgsrc/lang/wasi-compiler-rt/PLIST Sun Dec 19 14:05:53 2021
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2021/12/19 14:05:53 ryoon Exp $
+lib/clang/13.0.0/lib/wasi/libclang_rt.builtins-wasm32.a
Index: pkgsrc/lang/wasi-compiler-rt/buildlink3.mk
diff -u /dev/null pkgsrc/lang/wasi-compiler-rt/buildlink3.mk:1.1
--- /dev/null Sun Dec 19 14:05:53 2021
+++ pkgsrc/lang/wasi-compiler-rt/buildlink3.mk Sun Dec 19 14:05:53 2021
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/12/19 14:05:53 ryoon Exp $
+
+BUILDLINK_TREE+= wasi-compiler-rt
+
+BUILDLINK_DEPMETHOD.wasi-compiler-rt?= build
+
+.if !defined(WASI_COMPILER_RT_BUILDLINK3_MK)
+WASI_COMPILER_RT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.wasi-compiler-rt+= wasi-compiler-rt>=13.0.0
+BUILDLINK_PKGSRCDIR.wasi-compiler-rt?= ../../lang/wasi-compiler-rt
+
+.endif # WASI_COMPILER_RT_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -wasi-compiler-rt
Home |
Main Index |
Thread Index |
Old Index