mirror of
https://github.com/decompals/wibo.git
synced 2025-12-18 09:25:23 +00:00
Fix Alpine and Ubuntu builds
This commit is contained in:
@@ -19,6 +19,7 @@ RUN apt-get update \
|
|||||||
libc6-dev-i386 \
|
libc6-dev-i386 \
|
||||||
libclang-dev \
|
libclang-dev \
|
||||||
linux-libc-dev-i386-cross \
|
linux-libc-dev-i386-cross \
|
||||||
|
lld \
|
||||||
llvm \
|
llvm \
|
||||||
make \
|
make \
|
||||||
ninja-build \
|
ninja-build \
|
||||||
@@ -46,6 +47,7 @@ RUN cmake -S /wibo -B /wibo/build -G Ninja \
|
|||||||
-DCMAKE_AR:PATH=/usr/bin/llvm-ar \
|
-DCMAKE_AR:PATH=/usr/bin/llvm-ar \
|
||||||
-DCMAKE_RANLIB:PATH=/usr/bin/llvm-ranlib \
|
-DCMAKE_RANLIB:PATH=/usr/bin/llvm-ranlib \
|
||||||
-DCMAKE_BUILD_TYPE:STRING="$BUILD_TYPE" \
|
-DCMAKE_BUILD_TYPE:STRING="$BUILD_TYPE" \
|
||||||
|
-DCMAKE_EXE_LINKER_FLAGS:STRING="-m32 -fuse-ld=lld" \
|
||||||
-DWIBO_ENABLE_LIBURING:BOOL=ON \
|
-DWIBO_ENABLE_LIBURING:BOOL=ON \
|
||||||
-DWIBO_ENABLE_LTO:STRING="$ENABLE_LTO" \
|
-DWIBO_ENABLE_LTO:STRING="$ENABLE_LTO" \
|
||||||
-DWIBO_VERSION:STRING="$WIBO_VERSION" \
|
-DWIBO_VERSION:STRING="$WIBO_VERSION" \
|
||||||
|
|||||||
@@ -12,12 +12,16 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <linux/prctl.h>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
// Alpine hack: rename duplicate prctl_mm_map (sys/prctl.h also includes it)
|
||||||
|
#define prctl_mm_map _prctl_mm_map
|
||||||
|
#include <linux/prctl.h>
|
||||||
|
#undef prctl_mm_map
|
||||||
|
|
||||||
#include <mimalloc.h>
|
#include <mimalloc.h>
|
||||||
#include <mimalloc/internal.h>
|
#include <mimalloc/internal.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user