diff --git a/candle-flash-mla/build.rs b/candle-flash-mla/build.rs index f27733893..ac6506b24 100644 --- a/candle-flash-mla/build.rs +++ b/candle-flash-mla/build.rs @@ -148,15 +148,15 @@ fn main() -> Result<()> { command.args(["-ccbin", ccbin_path]); } + // Add the source file + command.arg(input); + // https://github.com/EricLBuehler/mistral.rs/issues/286 if let Some(cuda_nvcc_flags_env) = CUDA_NVCC_FLAGS { command.arg("--compiler-options"); command.arg(cuda_nvcc_flags_env); } - // Add the source file - command.arg(input); - let output = command .spawn() .with_context(|| format!("Failed to spawn nvcc for {input:?}"))?