Fix gcc detection

This commit is contained in:
Kovid Goyal 2024-02-12 14:21:34 +05:30
parent f16c2a0d67
commit ac984d05f2
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -90,7 +90,7 @@ def cc_version_string(self) -> str:
@property
def is_gcc(self) -> bool:
return '(GCC)' in self.cc_version_string
return self.cc_version_string.startswith('gcc ')
def copy(self) -> 'Env':
ans = Env(self.cc, list(self.cppflags), list(self.cflags), list(self.ldflags), dict(self.library_paths), list(self.ldpaths), self.ccver)