mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
store the requires
typed ident for later use
This commit is contained in:
parent
483bbd48dd
commit
ae6e99152f
1 changed files with 3 additions and 0 deletions
|
@ -652,6 +652,8 @@ enum HeaderFor<'a> {
|
||||||
PkgConfig {
|
PkgConfig {
|
||||||
/// usually `base`
|
/// usually `base`
|
||||||
config_shorthand: &'a str,
|
config_shorthand: &'a str,
|
||||||
|
/// the type scheme of the main function (required by the platform)
|
||||||
|
platform_main_type: TypedIdent<'a>,
|
||||||
},
|
},
|
||||||
Interface,
|
Interface,
|
||||||
}
|
}
|
||||||
|
@ -3097,6 +3099,7 @@ fn send_header_two<'a>(
|
||||||
|
|
||||||
let extra = HeaderFor::PkgConfig {
|
let extra = HeaderFor::PkgConfig {
|
||||||
config_shorthand: shorthand,
|
config_shorthand: shorthand,
|
||||||
|
platform_main_type: requires[0].value.clone(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut package_qualified_imported_modules = MutSet::default();
|
let mut package_qualified_imported_modules = MutSet::default();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue