File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,14 @@ pub(crate) fn get_dep_path() -> PathBuf {
21
21
// Obtain the build plan from `cargo build`. This JSON plan will tell us
22
22
// several things, including the path of the output of `auto_impl` (usually
23
23
// an .so file on Linux).
24
- let output = Command :: new ( env ! ( "CARGO" ) )
25
- . args ( & [ "build" , "-Z" , "unstable-options" , "--build-plan" ] )
26
- . stderr ( Stdio :: inherit ( ) )
27
- . output ( )
28
- . expect ( "failed to run `cargo build`" ) ;
24
+ let mut command = Command :: new ( env ! ( "CARGO" ) ) ;
25
+ command. args ( & [ "build" , "-Z" , "unstable-options" , "--build-plan" ] ) ;
26
+ command. stderr ( Stdio :: inherit ( ) ) ;
27
+
28
+ #[ cfg( feature = "nightly" ) ]
29
+ command. arg ( "--features=nightly" ) ;
30
+
31
+ let output = command. output ( ) . expect ( "failed to run `cargo build`" ) ;
29
32
30
33
if !output. status . success ( ) {
31
34
panic ! ( "failed to run `cargo build`" ) ;
You can’t perform that action at this time.
0 commit comments