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