mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-28 21:40:15 +02:00
scripts: fixed macos
This commit is contained in:
parent
585d0a398f
commit
f4f743c62f
@ -98,11 +98,14 @@ FPCCPU=$($FPC -iTP)
|
|||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
linux*)
|
linux*)
|
||||||
SNAPSHOTOS=linux
|
SNAPSHOTOS=linux
|
||||||
|
LIBEXT=so
|
||||||
;;
|
;;
|
||||||
darwin*)
|
darwin*)
|
||||||
SNAPSHOTOS=macos
|
SNAPSHOTOS=macos
|
||||||
|
LIBEXT=dylib
|
||||||
;;
|
;;
|
||||||
*) SNAPSHOTOS=unknown
|
*) SNAPSHOTOS=unknown
|
||||||
|
LIBEXT=dll
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
#
|
#
|
||||||
@ -177,7 +180,9 @@ doStrip $BINDIR/pas2js
|
|||||||
header Build libpas2js in $COMPDIR
|
header Build libpas2js in $COMPDIR
|
||||||
cd "$COMPDIR"
|
cd "$COMPDIR"
|
||||||
doCompile -Fu"$UNITPATH" $OPTS $LIBOPT -FE$BINDIR pas2jslib.pp
|
doCompile -Fu"$UNITPATH" $OPTS $LIBOPT -FE$BINDIR pas2jslib.pp
|
||||||
doStrip $BINDIR/libpas2jslib.so
|
if [ "$OSTYPE" ne "darwin" ]; then
|
||||||
|
doStrip $BINDIR/libpas2jslib.$LIBEXT
|
||||||
|
fi
|
||||||
|
|
||||||
# compileserver
|
# compileserver
|
||||||
if [ ! -z "$FPCVER30" ]; then
|
if [ ! -z "$FPCVER30" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user