Commit f0d0f2f 1 parent ce572bc commit f0d0f2f Copy full SHA for f0d0f2f
File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -115,16 +115,16 @@ hint: This command only works in the manifest directory of a Cargo package."#
115
115
bail ! ( "`cargo clean` failed with status: {}" , check_status) ;
116
116
}
117
117
118
+ let mut rustflags = env:: var ( "RUSTFLAGS" ) . unwrap_or_default ( ) ;
119
+ rustflags. push_str ( & format ! (
120
+ " --cfg __sqlx_recompile_trigger=\" {}\" " ,
121
+ SystemTime :: UNIX_EPOCH . elapsed( ) ?. as_millis( )
122
+ ) ) ;
123
+
118
124
Command :: new ( & cargo)
119
125
. arg ( "check" )
120
126
. args ( cargo_args)
121
- . env (
122
- "RUSTFLAGS" ,
123
- format ! (
124
- "--cfg __sqlx_recompile_trigger=\" {}\" " ,
125
- SystemTime :: UNIX_EPOCH . elapsed( ) ?. as_millis( )
126
- ) ,
127
- )
127
+ . env ( "RUSTFLAGS" , rustflags)
128
128
. env ( "SQLX_OFFLINE" , "false" )
129
129
. status ( ) ?
130
130
} else {
You can’t perform that action at this time.
0 commit comments