SCons: Add method to detect Emscripten and use it for warnings config

Emscripten is LLVM-based so we want to follow the same logic. But we can't just
put it as a match in `methods.using_clang()` as that would mess with the
compiler version detection logic used to restrict old GCC and Clang releases.
This commit is contained in:
Rémi Verschelde
2021-07-15 17:11:15 +02:00
parent 802810c371
commit 34421683eb
2 changed files with 7 additions and 3 deletions

View File

@ -828,6 +828,10 @@ def using_clang(env):
return "clang" in os.path.basename(env["CC"])
def using_emcc(env):
return "emcc" in os.path.basename(env["CC"])
def show_progress(env):
import sys
from SCons.Script import Progress, Command, AlwaysBuild