]> granicus.if.org Git - clang/commit
[Driver] Update handling of c++ and runtime directories
authorPetr Hosek <phosek@chromium.org>
Sun, 26 May 2019 03:39:07 +0000 (03:39 +0000)
committerPetr Hosek <phosek@chromium.org>
Sun, 26 May 2019 03:39:07 +0000 (03:39 +0000)
commit10299eac40b659e3829b33a24a451f0bde5f3793
tree4368968a8f4ffa40ea692e972e54ca3d86b14404
parent5a18a355edce3e687460b0fde3b5dbf48136d69c
[Driver] Update handling of c++ and runtime directories

This is a follow up to r361432 and r361504 which addresses issues
introduced by those changes. Specifically, it avoids duplicating
file and runtime paths in case when the effective triple is the
same as the cannonical one. Furthermore, it fixes the broken multilib
setup in the Fuchsia driver and deduplicates some of the code.

Differential Revision: https://reviews.llvm.org/D62442

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361709 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Driver/ToolChain.h
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains/Fuchsia.cpp
test/Driver/Inputs/basic_fuchsia_tree/bin/.keep [moved from test/Driver/Inputs/resource_dir_with_per_target_subdir/aarch64-fuchsia/lib/asan/.keep with 100% similarity]
test/Driver/Inputs/basic_fuchsia_tree/lib/aarch64-fuchsia/c++/asan/libc++.so [moved from test/Driver/Inputs/resource_dir_with_per_target_subdir/aarch64-fuchsia/lib/noexcept/.keep with 100% similarity]
test/Driver/Inputs/basic_fuchsia_tree/lib/aarch64-fuchsia/c++/libc++.so [moved from test/Driver/Inputs/resource_dir_with_per_target_subdir/x86_64-fuchsia/lib/asan/.keep with 100% similarity]
test/Driver/Inputs/basic_fuchsia_tree/lib/aarch64-fuchsia/c++/noexcept/libc++.so [moved from test/Driver/Inputs/resource_dir_with_per_target_subdir/x86_64-fuchsia/lib/noexcept/.keep with 100% similarity]
test/Driver/Inputs/basic_fuchsia_tree/lib/x86_64-fuchsia/c++/asan/libc++.so [new file with mode: 0644]
test/Driver/Inputs/basic_fuchsia_tree/lib/x86_64-fuchsia/c++/libc++.so [new file with mode: 0644]
test/Driver/Inputs/basic_fuchsia_tree/lib/x86_64-fuchsia/c++/noexcept/libc++.so [new file with mode: 0644]
test/Driver/fuchsia.c
test/Driver/fuchsia.cpp
test/Driver/linux-per-target-runtime-dir.c