Add libraries to sdk, copied from clang-r365631b; add lld trampoline
lld depends on the libraries.
The darwin and linux trampoline allows lld to be invoked from the tool
root while residing in lld-bin, which is the correct location relative
to the libraries.
- darwin libc++.1.dylib, trampoline
- linux libc++.so.1, trampoline
This required temporarily reverting
I09219d4275b81c5aff3a8562abfd341300303d8e which had removed that version
of linux clang prebuilts.
Bug: 148267171
Bug: 142590626
Bug: 144040336
Test: N/A
Change-Id: Ied2992a01ed65953630466d6b1a6c425a441e3d1
diff --git a/tools/darwin/lib64/libc++.1.dylib b/tools/darwin/lib64/libc++.1.dylib
new file mode 100755
index 0000000..5d2f7e2
--- /dev/null
+++ b/tools/darwin/lib64/libc++.1.dylib
Binary files differ
diff --git a/tools/linux/lib64/libc++.so.1 b/tools/linux/lib64/libc++.so.1
new file mode 100644
index 0000000..b69995d
--- /dev/null
+++ b/tools/linux/lib64/libc++.so.1
Binary files differ
diff --git a/tools/lld b/tools/lld
new file mode 100755
index 0000000..cfefa3c
--- /dev/null
+++ b/tools/lld
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# Copyright (C) 2020 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+$(dirname "$0")/lld-bin/lld "$@"