summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2025-01-09 14:50:49 +0200
committerGitHub <noreply@github.com>2025-01-09 14:50:49 +0200
commit5713f6a7ef2eda8606dd488985b4f74678815cca (patch)
treebf5b1a1b5cf1f93502ce17c28587cce7c8860954 /mesonbuild/compilers/compilers.py
parentd7c26133bb6ed8344214c9c07bd8b5011abeb00d (diff)
parentb95e1777ddbf0f8aebb56b84a6011468088c06ec (diff)
downloadmeson-5713f6a7ef2eda8606dd488985b4f74678815cca.tar.gz
Merge pull request #12342 from gerioldman/TaskingCCompiler
Add support for the TASKING compiler family, and its MIL linking feature
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 8788df0be..3dfa0ff27 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -432,8 +432,8 @@ class CompileResult(HoldableObject):
output_name: T.Optional[str] = field(default=None, init=False)
cached: bool = field(default=False, init=False)
-
class Compiler(HoldableObject, metaclass=abc.ABCMeta):
+
# Libraries to ignore in find_library() since they are provided by the
# compiler or the C library. Currently only used for MSVC.
ignore_libs: T.List[str] = []
@@ -1327,9 +1327,13 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
# TODO: using a TypeDict here would improve this
raise EnvironmentException(f'{self.id} does not implement get_feature_args')
- def get_prelink_args(self, prelink_name: str, obj_list: T.List[str]) -> T.List[str]:
+ def get_prelink_args(self, prelink_name: str, obj_list: T.List[str]) -> T.Tuple[T.List[str], T.List[str]]:
raise EnvironmentException(f'{self.id} does not know how to do prelinking.')
+ def get_prelink_append_compile_args(self) -> bool:
+ """Controls whether compile args have to be used for prelinking or not"""
+ return False
+
def rsp_file_syntax(self) -> 'RSPFileSyntax':
"""The format of the RSP file that this compiler supports.