mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-24 12:54:28 +03:00
use an explicit extension for libcb references in %foreign pragmas
This commit is contained in:
parent
56d24e34d4
commit
32b1c9b34f
@ -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
|
||||
|
@ -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.*
|
||||
|
Loading…
Reference in New Issue
Block a user