Always use ".obj" as the file extension for pre-assembled object files.
This addresses one issue with windows-gnu builds.
This commit is contained in:
parent
905aca9301
commit
cdc1301b3c
4
build.rs
4
build.rs
@ -472,8 +472,10 @@ fn build_c_code(target: &Target, pregenerated: PathBuf, out_dir: &Path) {
|
||||
// the user doesn't need to install the assembler. On other platforms we
|
||||
// assume the C compiler also assembles.
|
||||
if use_pregenerated && target.os() == WINDOWS {
|
||||
// The pregenerated object files always use ".obj" as the extension,
|
||||
// even when the C/C++ compiler outputs files with the ".o" extension.
|
||||
asm_srcs = asm_srcs.iter()
|
||||
.map(|src| obj_path(&pregenerated, src.as_path(), target.obj_ext))
|
||||
.map(|src| obj_path(&pregenerated, src.as_path(), "obj"))
|
||||
.collect::<Vec<_>>();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user