fn build_instrumented(&self, spec: &Spec) -> Result<Output> {
        // TODO: centralize and 'uniquify' this path.
        let spec_path = Path::new("/var/tmp/__autogen_trace.json");
        spec.write(spec_path)?;

        let mut command = self.make_command();
        command.envs(vec![("TRACE_SPEC_PATH".to_string(), spec_path.to_str().unwrap().to_string()),
                          ("TRACE_VERBOSE".to_string(), "1".to_string())]);

        println!("Building instrumented Tock OS with [[ {:?} ]].", command);
        command
            .output()
            .map_err(|io_err| SoftwareError::IO(io_err))
    }
/// Build Tock OS according to a spec.
Build Tock OS according to a spec.
Build Tock OS according to a spec .
fn build_instrumented(&self, spec: &Spec) -> Result<Output> {
        // TODO: centralize and 'uniquify' this path.
        let spec_path = Path::new("/var/tmp/__autogen_trace.json");
        spec.write(spec_path)?;
        let mut command = self.make_command();
        command.envs(vec![("TRACE_SPEC_PATH".to_string(), spec_path.to_str().unwrap().to_string()),
                          ("TRACE_VERBOSE".to_string(), "1".to_string())]);
        println!("Building instrumented Tock OS with [[ {:?} ]].", command);
        command
            .output()
            .map_err(|io_err| SoftwareError::IO(io_err))
    }
fn build_instrumented ( & self , spec : & Spec ) -> Result < Output > { // TODO: centralize and 'uniquify' this path. let spec_path = Path :: new ( " " ) ; spec . write ( spec_path ) ? ; let mut command = self . make_command ( ) ; command . envs ( vec ! [ ( " " to_string ( ) spec_path to_str ( ) unwrap ( ) to_string ( ) ) ( " " to_string ( ) " " to_string ( ) ) ] ) ; println ! ( " " command ) ; command . output ( ) . map_err ( | io_err | SoftwareError :: IO ( io_err ) ) }
Build Tock OS according to a spec.
Build Tock OS according to a spec .
&self
spec
&Spec
&self
spec
&Spec