diff --git a/cc/builder.go b/cc/builder.go index ee4073607..cbe2c8860 100644 --- a/cc/builder.go +++ b/cc/builder.go @@ -78,7 +78,7 @@ var ( blueprint.RuleParams{ // Without -no-pie, clang 7.0 adds -pie to link Android files, // but -r and -pie cannot be used together. - Command: "$ldCmd -nostdlib -no-pie -Wl,-r ${in} -o ${out} ${ldFlags}", + Command: "$ldCmd -fuse-ld=lld -nostdlib -no-pie -Wl,-r ${in} -o ${out} ${ldFlags}", CommandDeps: []string{"$ldCmd"}, }, "ldCmd", "ldFlags")