Skip to content

Commit

Permalink
darr.c/h is not just darr.h (header only)
Browse files Browse the repository at this point in the history
  • Loading branch information
tilkinsc committed Jan 15, 2019
1 parent a1f0556 commit 0502f97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -291,21 +291,21 @@ setlocal
)

echo Compiling luaw driver package %1...
%gcc% %attrib% %dirs% %luaverdef% -D__USE_MINGW_ANSI_STDIO=1 -DLC_LD_DLL -c %srcdir%\ldata.c %srcdir%\jitsupport.c %srcdir%\darr.c
%gcc% %attrib% %dirs% %luaverdef% -D__USE_MINGW_ANSI_STDIO=1 -DLC_LD_DLL -c %srcdir%\ldata.c %srcdir%\jitsupport.c

echo Linking luaw driver package %1...
%GCC% %attrib% %dirs% -shared -o lc%1.dll ldata.o jitsupport.o darr.o %luaverout%
%GCC% %attrib% %dirs% -shared -o lc%1.dll ldata.o jitsupport.o %luaverout%

goto :EOF
endlocal

:build_driver
setlocal
echo Compiling luaw driver...
%GCC% %attrib% %dirs% -D__USE_MINGW_ANSI_STDIO=1 -DDEFAULT_LUA=\"lc%1.dll\" -c %srcdir%\darr.c %srcdir%\luadriver.c
%GCC% %attrib% %dirs% -D__USE_MINGW_ANSI_STDIO=1 -DDEFAULT_LUA=\"lc%1.dll\" -c %srcdir%\luadriver.c

echo Linking luaw driver...
%GCC% %attrib% %dirs% -o luaw.exe luadriver.o darr.o
%GCC% %attrib% %dirs% -o luaw.exe luadriver.o

call :build_package %1

Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,20 +252,20 @@ function build_package() {
fi

echo "Compiling luaw driver package $1..."
$GCC $attrib $dirs -fPIC -DLC_LD_DLL $luaverdef -c $srcdir/ldata.c $srcdir/jitsupport.c $srcdir/darr.c
$GCC $attrib $dirs -fPIC -DLC_LD_DLL $luaverdef -c $srcdir/ldata.c $srcdir/jitsupport.c

echo "Linking luaw driver package $1..."
$GCC $attrib $dirs -fPIC -shared -Wl,-E -o lc$1.so ldata.o jitsupport.o darr.o $luaverout
$GCC $attrib $dirs -fPIC -shared -Wl,-E -o lc$1.so ldata.o jitsupport.o $luaverout

echo "Finished building driver package $1."
}

function build_driver() {
echo "Compiling luaw driver $1..."
$GCC $attrib $dirs -DDEFAULT_LUA=\"lc$1.so\" -c $srcdir/darr.c $srcdir/luadriver.c
$GCC $attrib $dirs -DDEFAULT_LUA=\"lc$1.so\" -c $srcdir/luadriver.c

echo "Linking luaw driver $1..."
$GCC $attrib $dirs -o luaw luadriver.o darr.o -ldl
$GCC $attrib $dirs -o luaw luadriver.o -ldl

build_package $1

Expand Down

0 comments on commit 0502f97

Please sign in to comment.