compilers/elbrus: wrap get_default_include_dirs with lru_cache
This commit is contained in:
parent
6ccd708f30
commit
360d81e4aa
|
@ -5,6 +5,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
"""Abstractions for the Elbrus family of compilers."""
|
"""Abstractions for the Elbrus family of compilers."""
|
||||||
|
|
||||||
|
import functools
|
||||||
import os
|
import os
|
||||||
import typing as T
|
import typing as T
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -59,6 +60,7 @@ class ElbrusCompiler(GnuLikeCompiler):
|
||||||
return [os.path.realpath(p) for p in libstr.split(':')]
|
return [os.path.realpath(p) for p in libstr.split(':')]
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
@functools.lru_cache(maxsize=None)
|
||||||
def get_default_include_dirs(self) -> T.List[str]:
|
def get_default_include_dirs(self) -> T.List[str]:
|
||||||
os_env = os.environ.copy()
|
os_env = os.environ.copy()
|
||||||
os_env['LC_ALL'] = 'C'
|
os_env['LC_ALL'] = 'C'
|
||||||
|
|
Loading…
Reference in New Issue