File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ use std::path::Path;
33fn main ( ) {
44 let dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
55 let root = dir. parent ( ) . unwrap ( ) ;
6- walk ( & root. join ( "../coresimd/x86" ) ) ;
7- walk ( & root. join ( "../coresimd/x86_64" ) ) ;
8- walk ( & root. join ( "../coresimd/arm" ) ) ;
9- walk ( & root. join ( "../coresimd/aarch64" ) ) ;
6+ eprintln ! ( "root: {}" , root. display( ) ) ;
7+ walk ( & root. join ( "core_arch/src/x86" ) ) ;
8+ walk ( & root. join ( "core_arch/src/x86_64" ) ) ;
9+ walk ( & root. join ( "core_arch/src/arm" ) ) ;
10+ walk ( & root. join ( "core_arch/src/aarch64" ) ) ;
1011}
1112
1213fn walk ( root : & Path ) {
1314 for file in root. read_dir ( ) . unwrap ( ) {
15+ eprintln ! ( "root: {}" , root. display( ) ) ;
1416 let file = file. unwrap ( ) ;
1517 if file. file_type ( ) . unwrap ( ) . is_dir ( ) {
1618 walk ( & file. path ( ) ) ;
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ use proc_macro::TokenStream;
1313
1414#[ proc_macro]
1515pub fn x86_functions ( input : TokenStream ) -> TokenStream {
16- functions ( input, & [ "../coresimd /x86" , "../coresimd /x86_64" ] )
16+ functions ( input, & [ "core_arch/src /x86" , "core_arch/src /x86_64" ] )
1717}
1818
1919#[ proc_macro]
2020pub fn arm_functions ( input : TokenStream ) -> TokenStream {
21- functions ( input, & [ "../coresimd /arm" , "../coresimd /aarch64" ] )
21+ functions ( input, & [ "core_arch/src /arm" , "core_arch/src /aarch64" ] )
2222}
2323
2424fn functions ( input : TokenStream , dirs : & [ & str ] ) -> TokenStream {
You can’t perform that action at this time.
0 commit comments