[Driver][Fuchsia] Support -nolibc flag
authorPetr Hosek <phosek@chromium.org>
Sun, 17 Feb 2019 01:02:40 +0000 (01:02 +0000)
committerPetr Hosek <phosek@chromium.org>
Sun, 17 Feb 2019 01:02:40 +0000 (01:02 +0000)
commit5ecf51d2f4aeb1dc48bff3c5ae72b818c247dae9
treee58376ad87f28919e32115503e9fe688b4739176
parent21da42945b72719b69939381feff081491f5bdca
[Driver][Fuchsia] Support -nolibc flag

This can be used to disable libc linking. This flag is supported by
GCC since version 9 as well as some Clang target toolchains. This
change also includes tests for all -no* flags which previously weren't
covered.

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

llvm-svn: 354208
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/test/Driver/fuchsia.c
clang/test/Driver/fuchsia.cpp