[clang][emscripten] Add builtin define for __EMSCRIPTEN_PTHREADS__
authorSam Clegg <sbc@chromium.org>
Fri, 5 Feb 2021 20:33:53 +0000 (12:33 -0800)
committerSam Clegg <sbc@chromium.org>
Fri, 5 Feb 2021 21:53:05 +0000 (13:53 -0800)
commit38a285885dd5f3634d7824da2a6aefe5e39782a7
tree97f9e590e9584cf74ece58c6dd068c5b2c093d4a
parent5e5b2cb131c2eec056358d25f946bb208cb8a381
[clang][emscripten] Add builtin define for __EMSCRIPTEN_PTHREADS__

Currently the emscripten frontend driver injects this when building
with thread support.  Moving this into the clang driver itself makes
the emscripten python driver less magical.

Differential Revision: https://reviews.llvm.org/D96171
clang/lib/Basic/Targets/OSTargets.h
clang/test/Preprocessor/init.c