]> granicus.if.org Git - clang/commit
Add Hurd target to Clang driver (2/2)
authorKristina Brooks <kristina@nym.hush.com>
Thu, 29 Nov 2018 03:49:14 +0000 (03:49 +0000)
committerKristina Brooks <kristina@nym.hush.com>
Thu, 29 Nov 2018 03:49:14 +0000 (03:49 +0000)
commit2709c8b804eb38dbdc8ae05b8fcf4f95c01b4102
treee5bc862d8690261dbd6eee2b73aa1484096ee167
parent7704e066fc8612e1aa6b5cfa02f826c36b1ff0bb
Add Hurd target to Clang driver (2/2)

This adds Hurd toolchain support to Clang's driver in addition
to handling translating the triple from Hurd-compatible form to
the actual triple registered in LLVM.

(Phabricator was stripping the empty files from the patch so I
manually created them)

Patch by sthibaul (Samuel Thibault)

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347833 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
lib/Basic/Targets.cpp
lib/Basic/Targets/OSTargets.h
lib/Driver/CMakeLists.txt
lib/Driver/Driver.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/ToolChains/Hurd.cpp [new file with mode: 0644]
lib/Driver/ToolChains/Hurd.h [new file with mode: 0644]
lib/Frontend/InitHeaderSearch.cpp
test/Driver/Inputs/basic_hurd_tree/include/.keep [new file with mode: 0644]
test/Driver/Inputs/basic_hurd_tree/lib/i386-gnu/.keep [new file with mode: 0644]
test/Driver/Inputs/basic_hurd_tree/lib32/.keep [new file with mode: 0644]
test/Driver/Inputs/basic_hurd_tree/usr/include/i386-gnu/.keep [new file with mode: 0644]
test/Driver/Inputs/basic_hurd_tree/usr/lib/i386-gnu/.keep [new file with mode: 0644]
test/Driver/Inputs/basic_hurd_tree/usr/lib32/.keep [new file with mode: 0644]
test/Driver/hurd.c [new file with mode: 0644]