]> granicus.if.org Git - clang/commit
[WebAssembly] Add a __wasi__ target macro
authorDan Gohman <dan433584@gmail.com>
Thu, 24 Jan 2019 21:05:11 +0000 (21:05 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 24 Jan 2019 21:05:11 +0000 (21:05 +0000)
commitccfa90a8986d66bed42a2ac2a4cf382f63946c6c
treea35f4cd3ceddd072ef4048d3beb8029343843d42
parent0215c4f02ff23ab9150d2593024d63580a2c85e1
[WebAssembly] Add a __wasi__ target macro

This adds a `__wasi__` macro for the wasi OS, similar to `__linux__` etc. for
other OS's.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
lib/Basic/Targets/OSTargets.h
test/Preprocessor/init.c