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;
3
3
fn main ( ) {
4
4
let dir = Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) ) ;
5
5
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" ) ) ;
10
11
}
11
12
12
13
fn walk ( root : & Path ) {
13
14
for file in root. read_dir ( ) . unwrap ( ) {
15
+ eprintln ! ( "root: {}" , root. display( ) ) ;
14
16
let file = file. unwrap ( ) ;
15
17
if file. file_type ( ) . unwrap ( ) . is_dir ( ) {
16
18
walk ( & file. path ( ) ) ;
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ use proc_macro::TokenStream;
13
13
14
14
#[ proc_macro]
15
15
pub 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" ] )
17
17
}
18
18
19
19
#[ proc_macro]
20
20
pub fn arm_functions ( input : TokenStream ) -> TokenStream {
21
- functions ( input, & [ "../coresimd /arm" , "../coresimd /aarch64" ] )
21
+ functions ( input, & [ "core_arch/src /arm" , "core_arch/src /aarch64" ] )
22
22
}
23
23
24
24
fn functions ( input : TokenStream , dirs : & [ & str ] ) -> TokenStream {
You can’t perform that action at this time.
0 commit comments