Skip to content

Commit

Permalink
Fixup Object Linking
Browse files Browse the repository at this point in the history
Re-add support for specifying object files as the linker asset type.
This was lost in the catchup merge.
  • Loading branch information
iwillspeak committed Aug 28, 2022
1 parent eaf0fe8 commit f1d8b00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ enum LinkMode {
/// Bitcode files
#[serde(rename = "bc")]
LlvmBc,
/// Native Objects
#[serde(rename = "obj")]
Objects,
}

/// Custom Deserialiser for Optimisation Flags
Expand Down Expand Up @@ -158,6 +161,7 @@ impl From<LinkMode> for linker::Linker {
match mode {
LinkMode::LlvmIr => linker::LinkerAssetType::LlvmIr,
LinkMode::LlvmBc => linker::LinkerAssetType::LlvmBc,
LinkMode::Objects => linker::LinkerAssetType::Object,
},
)
}
Expand Down

0 comments on commit f1d8b00

Please sign in to comment.