-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow stack build
to target sub-libraries
#6042
Comments
@philderbeast, it looks to me that that documentation is indeed incomplete, because it does not discuss Some further notes for my own use:
Then Stack complains:
|
@philderbeast, I've improved the existing online documentation. |
lib
a comptype
and can we target them by name?stack build
to target sub-libraries
I don't know if this should be a separate issue, but I'm having trouble getting sub-libs into HLS. I suspect it's related to this issue. |
@theobat, currently, Stack's target syntax |
yes, this is a significant change, mainly because of how the cache system was built in stack, it's package based so building anything less than "all the libraries" means we have to deal with partial values in the cache. I don't remember all the details, but this is somewhat orthogonal to the component based builds : using component based builds, using package based builds we can also build "partially" a package. |
@theobat, many thanks. I'll add 'the cache system' to my list of things I need to understand! |
Could we add
lib
as acomptype
in docs section for target syntax?There's no mention of
lib
ascomptype
but I can use it.I see it listed as a
packagename:comptype
target:The library name is the same as the package name but we can't use that as a
packagename:comptype:compname
target.When we support multiple library packages we'll need to be able to specify the
compname
of libraries. Before that feature lands we could allowcompname
for libraries.The text was updated successfully, but these errors were encountered: