Skip to content
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

Smackage should learn how to build things #19

Open
gian opened this issue Dec 3, 2012 · 0 comments
Open

Smackage should learn how to build things #19

gian opened this issue Dec 3, 2012 · 0 comments

Comments

@gian
Copy link
Member

gian commented Dec 3, 2012

If you do (as of 1.2.1):

smackage get smbt
smackage make smbt
smackage make smbt install

You get an SML build tool that is FFI-aware, among other things. We should consider how to get smackage to make use of this (smbt needs documenting, uh... yeah...). Something like this might work:

smackage build foobar mlton

actually calls:

cd $SMACKAGE_HOME/lib/foobar/v1
smbt build.sm mlton

Which (assuming 'foobar' has an appropriate build.sm file) will do approximately the right thing. Smbt is currently smackage-aware, in the sense that it expects Smackage to tell it how to find dependencies (with the new `pathinfo' command as of 1.2.0).

Smackage need not be used with smbt in every case, but we should consider whether it could advance the cause by allowing it to be used easily, particularly given that it hides the nastiness associated with embedded FFI dependencies in libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant