File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
infra/base-images/base-builder/indexer Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,12 @@ class BinaryConfig:
139139
140140 binary_name : str
141141
142+ @property
143+ def uses_stdin (self ) -> bool :
144+ """Whether the binary uses stdin."""
145+ del self
146+ return False
147+
142148 @classmethod
143149 def from_dict (cls , config_dict : Mapping [str , Any ]) -> Self :
144150 """Deserializes the correct `BinaryConfig` subclass from a dict."""
@@ -188,6 +194,11 @@ class CommandLineBinaryConfig(BinaryConfig):
188194 # some targets like V8 require this to be false, see b/433718862.
189195 filter_compile_commands : bool = True
190196
197+ @property
198+ def uses_stdin (self ) -> bool :
199+ """Whether the binary uses stdin."""
200+ return manifest_constants .INPUT_FILE not in self .binary_args
201+
191202 @classmethod
192203 def from_dict (cls , config_dict : Mapping [str , Any ]) -> Self :
193204 """Deserializes the `CommandLineBinaryConfig` from a dict."""
You can’t perform that action at this time.
0 commit comments