[Driver] add initial support for alpine linux
authorMartell Malone <martellmalone@gmail.com>
Sun, 19 Nov 2017 00:08:12 +0000 (00:08 +0000)
committerMartell Malone <martellmalone@gmail.com>
Sun, 19 Nov 2017 00:08:12 +0000 (00:08 +0000)
commit13c5d7379a01e0ad5e2511194058524b594b9a88
tree121d6adefe6e6e0d576c44b9c45d0f3d9e62eb55
parentc812560c1498a6f20c9fb6dde0c95a30425f8a0f
[Driver] add initial support for alpine linux

set -pie as default for musl linux targets
add detection of alpine linux
append appropriate compile flags for alpine

Reviewers: rnk

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

llvm-svn: 318608
clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp
clang/lib/Driver/ToolChains/Linux.cpp
clang/test/Driver/pic.c