dart-sdk/build/fuchsia/config/clang/BUILD.gn
Tess Strickland 40a53e2a2a [build] Fix paths to clang shared libraries on Fuchsia.
Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-x64-try,vm-kernel-win-release-x64-try
Change-Id: I94d65dbc239ce154db840638410d444d9f9bf50e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204584
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2021-06-23 10:23:05 +00:00

31 lines
839 B
Text

# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/fuchsia/config/clang/clang.gni")
# This adds the runtime deps for C++ for usage when cross compiling.
group("c++-runtime-deps") {
data_deps = [
":clang-runtime-libs",
]
}
copy("clang-runtime-libs") {
if (target_cpu == "arm64") {
arch = "aarch64"
} else if (target_cpu == "x64") {
arch = "x86_64"
}
vendor = "unknown"
sys = target_os
sources = [
"${clang_base_path}/lib/${arch}-${vendor}-${sys}/libc++.so.2.0",
"${clang_base_path}/lib/${arch}-${vendor}-${sys}/libc++abi.so.1.0",
"${clang_base_path}/lib/${arch}-${vendor}-${sys}/libunwind.so.1.0",
]
outputs = [
"${root_out_dir}/lib/{{source_name_part}}",
]
}