summaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorL. E. Segovia <amy@amyspark.me>2025-03-21 14:09:55 -0300
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2025-05-22 13:49:18 +0530
commit49c462ba7a85063ac03b8cd67007c3607e2bc4de (patch)
tree19baf4de05f8e95c6056fdb18c6a8d3b14402856 /mesonbuild/build.py
parent1ac86c1df8dd3321f81fa5c4eb861c6e86d891ab (diff)
downloadmeson-49c462ba7a85063ac03b8cd67007c3607e2bc4de.tar.gz
gnome.mkenums: Use rspfiles on Windows when possible
Fixes #6710
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 6ed333629..f4183b522 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -2663,6 +2663,7 @@ class CustomTarget(Target, CustomTargetBase, CommandBase):
install_dir: T.Optional[T.List[T.Union[str, Literal[False]]]] = None,
install_mode: T.Optional[FileMode] = None,
install_tag: T.Optional[T.List[T.Optional[str]]] = None,
+ rspable: bool = False,
absolute_paths: bool = False,
backend: T.Optional['Backend'] = None,
description: str = 'Generating {} with a custom command',
@@ -2695,6 +2696,9 @@ class CustomTarget(Target, CustomTargetBase, CommandBase):
# Whether to use absolute paths for all files on the commandline
self.absolute_paths = absolute_paths
+ # Whether to enable using response files for the underlying tool
+ self.rspable = rspable
+
def get_default_install_dir(self) -> T.Union[T.Tuple[str, str], T.Tuple[None, None]]:
return None, None