1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

Meta: Default chosen compilers to the CC and CXX environment variables

This regressed when porting find_compiler.sh to python.
This commit is contained in:
Timothy Flynn 2025-06-02 07:28:31 -04:00 committed by Tim Flynn
parent c52c05555b
commit 2380fb0ca1
Notes: github-actions[bot] 2025-06-02 12:05:14 +00:00

View file

@ -4,6 +4,7 @@
# SPDX-License-Identifier: BSD-2-Clause
import enum
import os
import platform
import sys
@ -45,6 +46,11 @@ class Platform:
sys.exit(1)
def default_compiler(self) -> tuple[str, str]:
cc = os.environ.get("CC", None)
cxx = os.environ.get("CXX", None)
if cc and cxx:
return (cc, cxx)
if self.host_system == HostSystem.Windows:
return ("clang-cl", "clang-cl")
return ("cc", "c++")