mirror of
https://github.com/vacp2p/nim-ngtcp2.git
synced 2026-01-09 21:18:07 -05:00
Add {.compile.} pragma's to generated file
This commit is contained in:
committed by
markspanbroek
parent
211c6fb17c
commit
da8939e160
6
build.sh
6
build.sh
@@ -15,8 +15,14 @@ cat "${root}/sockets.nim" > "${root}/ngtcp2.nim"
|
||||
# dividing line
|
||||
echo >> "${root}/ngtcp2.nim"
|
||||
|
||||
# assemble list of C files to be compiled
|
||||
for file in `ls "${root}/sources/lib"/*.c`; do
|
||||
compile="${compile} --compile=${file}"
|
||||
done
|
||||
|
||||
# generate nim wrapper with nimterop
|
||||
toast \
|
||||
$compile \
|
||||
--pnim \
|
||||
--preprocess \
|
||||
--includeDirs="${root}/sources/lib/includes" \
|
||||
|
||||
Reference in New Issue
Block a user