Try to rearrange the file order?

This commit is contained in:
Blaž Hrastnik 2021-07-12 01:01:56 +09:00
parent c8dc9b64dd
commit a7fa5621ce

View File

@ -71,12 +71,13 @@ fn build_library(src_path: &Path, language: &str) -> Result<()> {
command command
.args(&["/nologo", "/LD", "/I"]) .args(&["/nologo", "/LD", "/I"])
.arg(header_path) .arg(header_path)
.arg("/Od") .arg("/Od");
.arg(parser_path);
if let Some(scanner_path) = scanner_path.as_ref() { if let Some(scanner_path) = scanner_path.as_ref() {
command.arg(scanner_path); command.arg(scanner_path);
} }
command command
.arg(parser_path)
.arg("/link") .arg("/link")
.arg(format!("/out:{}", library_path.to_str().unwrap())); .arg(format!("/out:{}", library_path.to_str().unwrap()));
} else { } else {