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:
parent
48e7616263
commit
8471f47abb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user