use an explicit extension for libcb references in %foreign pragmas

This commit is contained in:
Ilya Rezvov 2020-01-09 11:55:33 -08:00
parent 56d24e34d4
commit 32b1c9b34f
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,5 @@
libcb : String -> String
libcb f = "C:" ++ f ++", libcb"
libcb f = "C:" ++ f ++", libcb.so"
%foreign libcb "add"
add : Int -> Int -> Int

View File

@ -1,4 +1,3 @@
cc --shared cblib.c -fPIC -o libcb.so
cc --shared cblib.c -fPIC -o libcb.dylib
$1 --no-banner CB.idr < input
rm -rf build libcb.*