File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:3 AS builder
2
+ ARG GIT_LOGIN
3
+ RUN set -xe \
4
+ && apk add --no-cache --purge -uU git cmake clang20 make openssl-libs-static openssl-dev liburing-dev linux-headers compiler-rt \
5
+ && rm -rf /var/cache/apk/* /tmp/*
6
+ COPY / /src
7
+ RUN mkdir /build \
8
+ && CXX=/usr/bin/clang++-20 CC=/usr/bin/clang-20 cmake -S /src -B /build \
9
+ -DASYNCPP_BUILD_TEST=ON -DASYNCPP_WITH_ASAN=ON -DCMAKE_BUILD_TYPE=Release
10
+ RUN cmake --build /build -j
11
+
12
+ FROM alpine:3
13
+ RUN set -xe \
14
+ && apk add --no-cache --purge -uU liburing libstdc++ openssl \
15
+ && rm -rf /var/cache/apk/* /tmp/*
16
+ COPY --from=builder /build/asyncpp_io-test /opt/asyncpp_io-test
17
+ CMD [ "/opt/asyncpp_io-test" ]
Original file line number Diff line number Diff line change 11
11
#include < sys/types.h>
12
12
#include < unistd.h>
13
13
14
+ // Fixes for MUSL Libc that lacks *64_t types
15
+ #ifndef __GLIBC__
16
+ #define off64_t off_t
17
+ #define stat64 stat
18
+ #define fstat64 fstat
19
+ #define fseeko64 fseeko
20
+ #define ftello64 ftello
21
+ #endif
22
+
14
23
namespace asyncpp ::io::detail {
15
24
16
25
io_engine::socket_handle_t io_engine_generic_unix::socket_create (address_type domain, socket_type type) {
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ namespace asyncpp::io::detail {
10
10
#include < cstring>
11
11
#include < mutex>
12
12
13
- #include < asm/unistd_64.h>
14
13
#include < fcntl.h>
15
14
#include < liburing.h>
16
15
#include < netinet/in.h>
You can’t perform that action at this time.
0 commit comments