HomePhabricator

[WebAssembly] Use single-threaded mode when -matomics isn't enabled.

Authored by sunfish on Feb 4 2021, 4:12 PM.

Description

[WebAssembly] Use single-threaded mode when -matomics isn't enabled.

When the -matomics feature is not enabled, disable POSIXThreads
mode and set the thread model to Single, so that we don't predefine
macros like __STDCPP_THREADS__.

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