Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit e828d17

Browse files
authored
Switch to upstream wasi-sdk (#11)
1 parent 436d446 commit e828d17

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

buildtools/bdwgc/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# Copyright The OWASP Coraza contributors
2-
# SPDX-License-Identifier: Apache-2.0
1+
# Copyright wasilibs authors
2+
# SPDX-License-Identifier: MIT
33

4-
FROM ghcr.io/corazawaf/coraza-proxy-wasm/buildtools-wasi-sdk:main
4+
FROM ghcr.io/webassembly/wasi-sdk:wasi-sdk-20
55

6-
RUN apt-get install -y autogen autoconf automake libtool
6+
RUN apt-get -y update && apt-get -y install curl
77

88
RUN mkdir -p /bdwgc && curl -L https://github.com/ivmai/bdwgc/archive/0a1667bee7f2c004abda6ecd173cd80bfef8412c.tar.gz | tar -xz --strip-components 1 -C /bdwgc
99
WORKDIR /bdwgc
1010
RUN ./autogen.sh
1111

1212
# While signals aren't actually used the header file is included unconditionally. We can enable the header file
1313
# without linking the actual signals library because the functions aren't called.
14-
ENV CFLAGS -D_WASI_EMULATED_SIGNAL ${CFLAGS}
14+
ENV CFLAGS -O3 -D_WASI_EMULATED_SIGNAL ${CFLAGS}
1515

1616
# host is required by configure but not used so set it arbitrarily
1717
RUN ./configure --disable-threads --disable-shared --disable-gcj-support --disable-java-finalization --disable-atomic-uncollectible --host=i686-pc-linux-gnu
1818
RUN make
1919

20-
CMD ["sh", "-c", "cp /bdwgc/.libs/libgc.a /usr/lib/llvm-15/lib/clang/15.*/lib/wasi/libclang_rt.builtins-wasm32.a /out/"]
20+
CMD ["sh", "-c", "cp /bdwgc/.libs/libgc.a /usr/lib/llvm-${LLVM_VERSION}/lib/clang/${LLVM_VERSION}/lib/wasi/libclang_rt.builtins-wasm32.a /out/"]

buildtools/mimalloc/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Copyright The OWASP Coraza contributors
2-
# SPDX-License-Identifier: Apache-2.0
1+
# Copyright wasilibs authors
2+
# SPDX-License-Identifier: MIT
33

4-
FROM ghcr.io/corazawaf/coraza-proxy-wasm/buildtools-wasi-sdk:main
4+
FROM ghcr.io/webassembly/wasi-sdk:wasi-sdk-20
55

6-
RUN apt-get install -y cmake
6+
RUN apt-get -y update && apt-get -y install curl
77

88
# Enables export of aligned_alloc
99
# TODO(anuraaga): It seems like this should be set automatically, consider debugging further.
10-
ENV CFLAGS -D__USE_ISOC11 ${CFLAGS}
10+
ENV CFLAGS -O3 -D__USE_ISOC11 ${CFLAGS}
1111

1212
RUN mkdir -p /mimalloc && curl -L https://github.com/microsoft/mimalloc/archive/d1fff1119a52e15c1c3807efe1077024c39fe70e.tar.gz | tar -xz --strip-components 1 -C /mimalloc
1313
WORKDIR /mimalloc

wasm/libclang_rt.builtins-wasm32.a

-4.25 KB
Binary file not shown.

wasm/libgc.a

2.31 KB
Binary file not shown.

wasm/libmimalloc.a

458 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)