Skip to content

Commit f13d6ec

Browse files
committed
Redesign spirv-builder's watch API
1 parent 29ba02d commit f13d6ec

File tree

1 file changed

+3
-2
lines changed
  • crates/spirv-builder/src

1 file changed

+3
-2
lines changed

crates/spirv-builder/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,15 @@ pub enum SpirvBuilderError {
125125
BuildFailed,
126126
#[error("multi-module build cannot be used with print_metadata = MetadataPrintout::Full")]
127127
MultiModuleWithPrintMetadata,
128-
#[error("watching within build scripts will prevent build completion")]
129-
WatchWithPrintMetadata,
130128
#[error("multi-module metadata file missing")]
131129
MetadataFileMissing(#[from] std::io::Error),
132130
#[error("unable to parse multi-module metadata file")]
133131
MetadataFileMalformed(#[from] serde_json::Error),
134132
#[error("cargo metadata error")]
135133
CargoMetadata(#[from] cargo_metadata::Error),
134+
#[cfg(feature = "watch")]
135+
#[error("watching within build scripts will prevent build completion")]
136+
WatchWithPrintMetadata,
136137
}
137138

138139
const SPIRV_TARGET_PREFIX: &str = "spirv-unknown-";

0 commit comments

Comments
 (0)