mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-07 21:17:07 +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:
parent
c52c05555b
commit
2380fb0ca1
Notes:
github-actions[bot]
2025-06-02 12:05:14 +00:00
Author: https://github.com/trflynn89
Commit: 2380fb0ca1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4963
Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 6 additions and 0 deletions
|
@ -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++")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue