1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-11 05:46:58 +03:00

[Mach-O] wip

This commit is contained in:
Rui Ueyama 2021-10-26 15:24:23 +09:00
parent 48e7616263
commit 8471f47abb

View File

@ -11,13 +11,16 @@ cat <<EOF | cc -o $t/a.o -c -xc -
void hello() {
printf("Hello world\n");
}
EOF
cat <<EOF | cc -o $t/b.o -c -xc -
void hello();
int main() {
hello();
}
EOF
clang -fuse-ld=$mold -o $t/exe $t/a.o
clang -fuse-ld=$mold -o $t/exe $t/a.o $t/b.o
$t/exe | grep -q 'Hello world'
echo OK