summaryrefslogtreecommitdiffhomepage
path: root/samples/12_c_extensions/02_intermediate/pre.bat
blob: 2b4ea2ea7cf690250e986f2518cd5261a82f3098 (plain)
1
2
3
4
5
set DRB_ROOT=..\..\..\
md native
md native\windows-amd64
%DRB_ROOT%\dragonruby-bind.exe --ffi-module=RE --output=native\re-bindings.c app\re.h
clang -shared .\native\re-bindings.c .\app\re.c --sysroot=C:\mingw-w64\mingw64 --target=x86_64-w64-mingw32 -fuse-ld=lld -isystem %DRB_ROOT%\include -I. -o native\windows-amd64\ext.dll