@@ -91,7 +91,7 @@ use thiserror::Error;
91
91
pub use rustc_codegen_spirv_types:: Capability ;
92
92
pub use rustc_codegen_spirv_types:: { CompileResult , ModuleResult } ;
93
93
94
- #[ cfg( feature = "include_target_specs " ) ]
94
+ #[ cfg( feature = "include-target-specs " ) ]
95
95
pub use rustc_codegen_spirv_target_specs:: TARGET_SPEC_DIR_PATH ;
96
96
97
97
#[ derive( Debug , Error ) ]
@@ -114,7 +114,7 @@ pub enum SpirvBuilderError {
114
114
#[ error( "`rustc_codegen_spirv_location` path '{0}' is not a file" ) ]
115
115
RustcCodegenSpirvDylibDoesNotExist ( PathBuf ) ,
116
116
#[ error(
117
- "Without feature `include_target_specs `, instead of setting a `target`, \
117
+ "Without feature `include-target-specs `, instead of setting a `target`, \
118
118
you need to set the path of the target spec file of your particular target with `path_to_target_spec`"
119
119
) ]
120
120
MissingTargetSpec ,
@@ -983,12 +983,12 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
983
983
if toolchain_rustc_version >= Version :: new ( 1 , 76 , 0 ) {
984
984
let path_opt = builder. path_to_target_spec . clone ( ) ;
985
985
let path;
986
- #[ cfg( feature = "include_target_specs " ) ]
986
+ #[ cfg( feature = "include-target-specs " ) ]
987
987
{
988
988
path = path_opt
989
989
. unwrap_or_else ( || PathBuf :: from ( format ! ( "{TARGET_SPEC_DIR_PATH}/{target}.json" ) ) ) ;
990
990
}
991
- #[ cfg( not( feature = "include_target_specs " ) ) ]
991
+ #[ cfg( not( feature = "include-target-specs " ) ) ]
992
992
{
993
993
path = path_opt. ok_or ( SpirvBuilderError :: MissingTargetSpec ) ?;
994
994
}
0 commit comments