[WebAssembly] Support multilibs for wasm32 and add a wasm OS that uses it
authorDan Gohman <dan433584@gmail.com>
Tue, 15 Jan 2019 06:58:16 +0000 (06:58 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 15 Jan 2019 06:58:16 +0000 (06:58 +0000)
commit055a6f0462ea2bc59127a446fa00fb66dc354fc1
tree15ef679f993855fd668424e973ccd71327eb2445
parent1839dfd6d44fb9c0b9b352fc7ecbabac90cc1c7e
[WebAssembly] Support multilibs for wasm32 and add a wasm OS that uses it

This adds support for multilib paths for wasm32 targets, following
[Debian's Multiarch conventions], and also adds an experimental OS name in
order to test it.

[Debian's Multiarch conventions]: https://wiki.debian.org/Multiarch/

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

llvm-svn: 351164
clang/lib/Basic/Targets.cpp
clang/lib/Driver/ToolChains/WebAssembly.cpp
clang/test/Driver/wasm-toolchain.c
clang/test/Driver/wasm-toolchain.cpp