mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
Use the same platform for quicksort and shared-quicksort
This commit is contained in:
parent
e60796e32b
commit
db7cc54411
12
examples/shared-quicksort/platform/build.sh
Executable file
12
examples/shared-quicksort/platform/build.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# compile c_host.o and rust_host.o
|
||||
clang -c host.c -o c_host.o
|
||||
rustc host.rs -o rust_host.o
|
||||
|
||||
# link them together into host.o
|
||||
ld -r c_host.o rust_host.o -o host.o
|
||||
|
||||
# clean up
|
||||
rm -f c_host.o
|
||||
rm -f rust_host.o
|
Loading…
Reference in New Issue
Block a user