mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
Cleanup (fsnotifier compile script)
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
CC_FLAGS="-O3 -Wall -std=c99 -D_DEFAULT_SOURCE"
|
||||
|
||||
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
|
||||
if [ $? -eq 0 ] ; then
|
||||
chmod 755 fsnotifier
|
||||
fi
|
||||
clang -m32 ${CC_FLAGS} -o fsnotifier main.c inotify.c util.c && chmod 755 fsnotifier
|
||||
fi
|
||||
|
||||
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
|
||||
if [ $? -eq 0 ] ; then
|
||||
chmod 755 fsnotifier64
|
||||
fi
|
||||
clang -m64 ${CC_FLAGS} -o fsnotifier64 main.c inotify.c util.c && chmod 755 fsnotifier64
|
||||
fi
|
||||
Reference in New Issue
Block a user