mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Set link type based on --lib flag
This commit is contained in:
parent
cdc32aadd2
commit
9fcd339af9
2 changed files with 11 additions and 3 deletions
|
@ -12,8 +12,10 @@ use target_lexicon::{Architecture, OperatingSystem, Triple};
|
|||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
pub enum LinkType {
|
||||
Executable,
|
||||
Dylib,
|
||||
// These numbers correspond to the --lib flag; if it's present
|
||||
// (e.g. is_present returns `1 as bool`), this will be 1 as well.
|
||||
Executable = 0,
|
||||
Dylib = 1,
|
||||
}
|
||||
|
||||
/// input_paths can include the host as well as the app. e.g. &["host.o", "roc_app.o"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue