@@ -11,6 +11,7 @@ use std::{
11
11
12
12
#[ cfg( windows) ]
13
13
fn build_hacl ( lib_dir : & Path , build_config : & BuildConfig ) {
14
+ println ! ( "Compiling hacl-star in {:?} with {:?}" , lib_dir, build_config) ;
14
15
let mut build_status = Command :: new ( "cmd" ) ;
15
16
build_status
16
17
. args ( & [ "/C" , lib_dir. join ( "hacl-build.bat" ) . to_str ( ) . unwrap ( ) ] )
@@ -80,6 +81,7 @@ fn copy_hacl_to_out(out_dir: &Path, hacl_src_dir: &Path) {
80
81
if !cp_status. success ( ) {
81
82
panic ! ( "Failed to copy hacl-star to out_dir." )
82
83
}
84
+ println ! ( "Copied hacl-star to {:?}" , out_dir) ;
83
85
let cp_status = Command :: new ( "cp" )
84
86
. arg ( "hacl-build.bat" )
85
87
. arg ( hacl_src_dir)
@@ -88,8 +90,10 @@ fn copy_hacl_to_out(out_dir: &Path, hacl_src_dir: &Path) {
88
90
if !cp_status. success ( ) {
89
91
panic ! ( "Failed to copy hacl-build.bat to out_dir." )
90
92
}
93
+ println ! ( "Copied hacl-build.bat to {:?}" , hacl_src_dir) ;
91
94
}
92
95
96
+ #[ derive( Debug ) ]
93
97
struct BuildConfig {
94
98
hacl_src_dir : & ' static str ,
95
99
cross : bool ,
@@ -299,6 +303,10 @@ fn main() {
299
303
let hacl_src_path = hacl_dir. join ( "dist" ) . join ( build_config. hacl_src_dir ) ;
300
304
let hacl_src_path_str = hacl_src_path. to_str ( ) . unwrap ( ) ;
301
305
306
+ println ! ( "build_config: {:?}" , build_config) ;
307
+ println ! ( "out_path: {:?}" , out_path) ;
308
+ println ! ( "hacl_src_path: {:?}" , hacl_src_path) ;
309
+
302
310
// Build hacl/evercrypt
303
311
// Always rebuild on windows for now. TODO: fix rebuild check on Windows.
304
312
if build_config. windows || rebuild ( home_dir, & out_path) {
0 commit comments