fix stub lib path

platform-path is relative to the execution folder, not the input path
This commit is contained in:
Brendan Hansknecht 2022-11-29 10:03:20 -08:00
parent 24ddb1bf0a
commit 4329b08fae
No known key found for this signature in database
GPG key ID: A199D0660F95F948

View file

@ -158,11 +158,6 @@ pub fn generate_stub_lib(
.collect();
if let EntryPoint::Executable { platform_path, .. } = &loaded.entry_point {
let platform_path = input_path
.to_path_buf()
.parent()
.unwrap()
.join(platform_path);
let stub_lib = if let target_lexicon::OperatingSystem::Windows = triple.operating_system {
platform_path.with_file_name("libapp.obj")
} else {