You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
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.
(cherry picked from commit 34421683eb)
This commit is contained in:
@@ -840,6 +840,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
|
||||
|
||||
Reference in New Issue
Block a user