Edit

IABSD.fr/ports/lang/wasi-sdk/compiler-rt/Makefile

Branch :

  • Show log

    Commit

  • Author : landry
    Date : 2026-05-29 12:15:27
    Hash : 5f139419
    Message : lang/wasi-sdk: update to 22.1.6 while here fix lang/wasi-sdk/compiler-rt/pkg/PLIST to use ${TRIPLE} in the right place, was probably missing from my previous commit...

  • lang/wasi-sdk/compiler-rt/Makefile
  • COMMENT =	LLVM runtime library for WebAssembly System Interface
    
    DISTNAME =	llvm-project-${LLVM_V}.src
    PKGNAME =	wasi-compiler-rt-${LLVM_V}
    LIBPATH =	${TRIPLE}/libclang_rt.builtins.a
    BUILDSUBDIR =	compiler-rt/lib/builtins
    BUILD_DEPENDS +=	lang/wasi-libc>=0.20251114p1
    
    # In transition from BSD-ish to Apache 2 + LLVM exceptions
    PERMIT_PACKAGE =	Yes
    
    SUBST_VARS +=	MODCLANG_VERSION LIBPATH
    
    CONFIGURE_ARGS=	\
    		-DLLVM_CMAKE_DIR=${LOCALBASE}/llvm${MODCLANG_VERSION}/lib/cmake/llvm \
    		-DCMAKE_C_COMPILER_WORKS=1 \
    		-DCMAKE_CXX_COMPILER_WORKS=1 \
    		-DCMAKE_C_COMPILER_TARGET=${TRIPLE} \
    		-DCMAKE_CXX_COMPILER_TARGET=${TRIPLE} \
    		-DCMAKE_STAGING_PREFIX=${LOCALBASE}/llvm${MODCLANG_VERSION}/lib/clang/${MODCLANG_VERSION} \
    		-DCMAKE_SYSROOT=${WASI_SYSROOT} \
    		-DUNIX:BOOL=ON \
    		-DCOMPILER_RT_BAREMETAL_BUILD=ON \
    		-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON \
    		-DCOMPILER_RT_HAS_FPIC_FLAG:BOOL=ON \
    		-DCOMPILER_RT_INCLUDE_TESTS=OFF \
    		-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON
    
    .include <bsd.port.mk>