diff options
author | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2018-11-22 18:04:39 +0000 |
---|---|---|
committer | Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> | 2018-12-05 10:44:02 +0000 |
commit | a825096c4f3156709b2a93c4be2096985b03d34e (patch) | |
tree | 7b27f71209e4d6a42bca3a09f1c9646e1f90e4d0 /buildstream | |
parent | 9f75c274a56855c4c6dd625c2d4216d82febde75 (diff) | |
download | buildstream-a825096c4f3156709b2a93c4be2096985b03d34e.tar.gz |
_sandboxremote.py: Add os and arch to command uploaded
These are contained within the platform field.
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/sandbox/_sandboxremote.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/buildstream/sandbox/_sandboxremote.py b/buildstream/sandbox/_sandboxremote.py index c366b3f40..a967629fe 100644 --- a/buildstream/sandbox/_sandboxremote.py +++ b/buildstream/sandbox/_sandboxremote.py @@ -126,13 +126,20 @@ class SandboxRemote(Sandbox): EnvironmentVariable(name=k, value=v) for (k, v) in environment.items()] + config = self._get_config() + platform = remote_execution_pb2.Platform() + platform.properties.extend([remote_execution_pb2.Platform. + Property(name="OSFamily", value=config.build_os), + remote_execution_pb2.Platform. + Property(name="ISA", value=config.build_arch)]) + # Create and send the Command object. remote_command = remote_execution_pb2.Command(arguments=command, working_directory=working_directory, environment_variables=environment_variables, output_files=[], output_directories=[self._output_directory], - platform=None) + platform=platform) context = self._get_context() cascache = context.get_cascache() casremote = CASRemote(self.storage_remote_spec) |