/bin/twnbuild: fix cmake cache for web target

This commit is contained in:
veclavtalica 2025-02-22 01:32:55 +03:00
parent affaf7f557
commit 7a38f7bcf3

View File

@ -24,7 +24,7 @@ cmake = ["emcmake", "cmake"] if target_web else ["cmake"]
command = []
# check whether clang is around (it's just better)
if has_clang:
if has_clang and not target_web:
command += ["-DCMAKE_C_COMPILER=clang"]
# check whether ninja is around (you better start running)
if has_ninja: