From f981d1ab2d4f0d2898be060f9d8e15c5f82a0e7b Mon Sep 17 00:00:00 2001 From: Dan Lorenc Date: Fri, 26 Jan 2024 12:31:28 -0500 Subject: [PATCH] Add some wasi-sdk subpackages. Signed-off-by: Dan Lorenc --- wasi-sdk.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/wasi-sdk.yaml b/wasi-sdk.yaml index 3998fffd4fd..42e1fbf67f8 100644 --- a/wasi-sdk.yaml +++ b/wasi-sdk.yaml @@ -1,7 +1,7 @@ package: name: wasi-sdk version: 21 - epoch: 0 + epoch: 1 description: "WASI-enabled WebAssembly C/C++ toolchain" copyright: - license: Apache-2.0 @@ -48,6 +48,20 @@ pipeline: - uses: strip subpackages: + # This has to come before the split/dev step + - name: wasi-sdk-libclang-rt-builtins + pipeline: + - runs: | + mkdir -p ${{targets.subpkgdir}}/usr/lib/clang/lib/wasi + # Copy instead of move because this also needs to be in the -dev package + cp ${{targets.destdir}}/usr/lib/clang/17/lib/wasi/libclang_rt.builtins-wasm32.a ${{targets.subpkgdir}}/usr/lib/clang/lib/wasi/ + + - name: wasi-sdk-sysroot + pipeline: + - runs: | + mkdir -p ${{targets.subpkgdir}}/usr/share + mv ${{targets.destdir}}/usr/share/wasi-sysroot/ ${{targets.subpkgdir}}/usr/share/ + - name: wasi-sdk-dev pipeline: - uses: split/dev