Skip to content

Commit d3a7580

Browse files
OSS-Fuzz Teamcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 841931701
1 parent 9419be6 commit d3a7580

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

infra/base-images/base-builder/indexer/manifest_types.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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."""

0 commit comments

Comments
 (0)