File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ impl CargoCommandExt for std::process::Command {
8383 fn populate_from_args ( & mut self , args : & Args ) -> & mut Self {
8484 self . target ( & args. target ) ;
8585 self . sysroot ( args. sysroot_dir ( ) ) ;
86+ self . append_rustflags ( "--cfg=hyperlight" ) ;
87+ self . append_rustflags ( "--check-cfg=cfg(hyperlight)" ) ;
8688 self . entrypoint ( "entrypoint" ) ;
8789 if let Some ( clang) = & args. clang {
8890 self . cc_env ( & args. target , clang) ;
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ pub fn prepare(args: &Args) -> Result<()> {
2929 . arg ( "metadata" )
3030 . manifest_path ( & args. manifest_path )
3131 . arg ( "--format-version=1" )
32+ . append_rustflags ( "--cfg=hyperlight" )
33+ . append_rustflags ( "--check-cfg=cfg(hyperlight)" )
3234 . checked_output ( )
3335 . context ( "Failed to get cargo metadata" ) ?;
3436
You can’t perform that action at this time.
0 commit comments