Use the same platform for quicksort and shared-quicksort

This commit is contained in:
Richard Feldman 2020-10-04 14:09:25 -04:00
parent e60796e32b
commit db7cc54411
4 changed files with 12 additions and 0 deletions

View 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