[WebAssembly] Make driver -pthread imply linker --shared-memory
authorThomas Lively <tlively@google.com>
Fri, 22 Mar 2019 22:25:37 +0000 (22:25 +0000)
committerThomas Lively <tlively@google.com>
Fri, 22 Mar 2019 22:25:37 +0000 (22:25 +0000)
commit80ff58e37c96df05bd1811083267c9c53ef1b85f
treeb607ed3bfa662f9267ce53b232567d0037ef0f5a
parent386f00db75f1b6484329f14a7002e2c0fadadb76
[WebAssembly] Make driver -pthread imply linker --shared-memory

Summary:
This eliminates a linker error the user might otherwise see about how
using the 'atomics' feature requires --shared-memory.

Reviewers: sbc100, aheejin

Subscribers: dschuff, jgravelle-google, sunfish, jfb, cfe-commits

Tags: #clang

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

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