1+ mod  argument; 
12mod  compile; 
23mod  config; 
34mod  intrinsic; 
45mod  json_parser; 
56mod  types; 
67
7- use  std:: fs:: File ; 
8+ use  std:: fs:: { self ,   File } ; 
89
910use  rayon:: prelude:: * ; 
1011
@@ -72,6 +73,7 @@ impl SupportedArchitectureTest for ArmArchitectureTest {
7273        let  cpp_compiler_wrapped = compile:: build_cpp_compilation ( & self . cli_options ) ; 
7374
7475        let  notice = & build_notices ( "// " ) ; 
76+         fs:: create_dir_all ( "c_programs" ) . unwrap ( ) ; 
7577        self . intrinsics 
7678            . par_chunks ( chunk_size) 
7779            . enumerate ( ) 
@@ -81,7 +83,7 @@ impl SupportedArchitectureTest for ArmArchitectureTest {
8183                write_mod_cpp ( & mut  file,  notice,  c_target,  platform_headers,  chunk) . unwrap ( ) ; 
8284
8385                // compile this cpp file into a .o file 
84-                 if  let  Some ( cpp_compiler)  = cpp_compiler_wrapped. as_ref ( )  {    
86+                 if  let  Some ( cpp_compiler)  = cpp_compiler_wrapped. as_ref ( )  { 
8587                    let  output = cpp_compiler
8688                        . compile_object_file ( & format ! ( "mod_{i}.cpp" ) ,  & format ! ( "mod_{i}.o" ) ) ?; 
8789                    assert ! ( output. status. success( ) ,  "{output:?}" ) ; 
@@ -104,17 +106,17 @@ impl SupportedArchitectureTest for ArmArchitectureTest {
104106        // This is done because `cpp_compiler_wrapped` is None when 
105107        // the --generate-only flag is passed 
106108        if  let  Some ( cpp_compiler)  = cpp_compiler_wrapped. as_ref ( )  { 
107-         // compile this cpp file into a .o file 
109+              // compile this cpp file into a .o file 
108110            info ! ( "compiling main.cpp" ) ; 
109111            let  output = cpp_compiler
110112                . compile_object_file ( "main.cpp" ,  "intrinsic-test-programs.o" ) 
111113                . unwrap ( ) ; 
112114            assert ! ( output. status. success( ) ,  "{output:?}" ) ; 
113-      
115+ 
114116            let  object_files = ( 0 ..chunk_count) 
115117                . map ( |i| format ! ( "mod_{i}.o" ) ) 
116118                . chain ( [ "intrinsic-test-programs.o" . to_owned ( ) ] ) ; 
117-      
119+ 
118120            let  output = cpp_compiler
119121                . link_executable ( object_files,  "intrinsic-test-programs" ) 
120122                . unwrap ( ) ; 
0 commit comments