File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ impl AssemblyExporter for ILASMExporter {
56
56
. expect ( "Could not create file" )
57
57
. write_all ( & cil)
58
58
. expect ( "Could not write bytes" ) ;
59
- let asm_type = "/ dll" ;
59
+ let asm_type = "- dll" ;
60
60
let target = format ! (
61
- "/ output:{out_path}" ,
61
+ "- output:{out_path}" ,
62
62
out_path = out_path. clone( ) . to_string_lossy( )
63
63
) ;
64
64
let args: [ String ; 3 ] = [
@@ -70,12 +70,12 @@ impl AssemblyExporter for ILASMExporter {
70
70
. args ( args)
71
71
. output ( )
72
72
. expect ( "failed run ilasm process" ) ;
73
- let stdout = String :: from_utf8 ( out. stdout ) . unwrap ( ) ;
73
+ let stdout = String :: from_utf8_lossy ( & out. stdout ) ;
74
74
if !stdout. contains ( "\n Operation completed successfully\n " ) {
75
75
let err = format ! (
76
76
"stdout:{} stderr:{}" ,
77
77
stdout,
78
- String :: from_utf8 ( out. stderr) . unwrap ( )
78
+ String :: from_utf8_lossy ( & out. stderr)
79
79
) ;
80
80
return Err ( AssemblyExportError :: ExporterError ( err. into ( ) ) ) ;
81
81
}
You can’t perform that action at this time.
0 commit comments