mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
[platform] drops linux-arm build of fsnotifier; links to compilation instructions on exotic architectures
GitOrigin-RevId: d06b2e1f53e2645dc31f2541a8bd194fdecfb29b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3717428e19
commit
c3e404caf7
@@ -1,16 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
CC_FLAGS="-O2 -Wall -Wextra -Wpedantic -std=c11 -D_DEFAULT_SOURCE"
|
||||
compile_clang() { clang -O2 -Wall -Wextra -Wpedantic -std=c11 -D_DEFAULT_SOURCE "$@"; }
|
||||
compile_cc() { cc -O2 -Wall -Wextra -Wpedantic -Wno-unknown-pragmas -std=c11 -D_DEFAULT_SOURCE "$@"; }
|
||||
|
||||
VER=$(date "+%Y%m%d.%H%M")
|
||||
sed -i.bak "s/#define VERSION .*/#define VERSION \"${VER}\"/" fsnotifier.h && rm fsnotifier.h.bak
|
||||
ARCH=$(uname -m)
|
||||
|
||||
if [ -f "/usr/include/gnu/stubs-32.h" ] ; then
|
||||
echo "compiling 32-bit version"
|
||||
clang -m32 ${CC_FLAGS} -o fsnotifier main.c inotify.c util.c && chmod 755 fsnotifier
|
||||
fi
|
||||
if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; then
|
||||
echo "*** Compiling amd64 version (fsnotifier64) ..."
|
||||
compile_clang -o fsnotifier64 main.c inotify.c util.c && \
|
||||
chmod 755 fsnotifier64
|
||||
|
||||
if [ -f "/usr/include/gnu/stubs-64.h" ] ; then
|
||||
echo "compiling 64-bit version"
|
||||
clang -m64 ${CC_FLAGS} -o fsnotifier64 main.c inotify.c util.c && chmod 755 fsnotifier64
|
||||
# dependencies: libc6-dev:i386 libgcc-9-dev:i386
|
||||
printf "\n\n*** Compiling i386 version (fsnotifier) ...\n"
|
||||
compile_clang -target i686-linux-elf -o fsnotifier main.c inotify.c util.c && \
|
||||
chmod 755 fsnotifier
|
||||
else
|
||||
echo "*** Compiling platform-specific version (fsnotifier-$ARCH)..."
|
||||
compile_cc -o fsnotifier-"$ARCH" main.c inotify.c util.c && \
|
||||
chmod 755 fsnotifier-"$ARCH"
|
||||
fi
|
||||
Reference in New Issue
Block a user