diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2018-02-15 13:54:55 +0800 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2018-02-15 23:42:33 +0800 |
commit | 7c173b9043f7a9a5da46c5b0cc5fc3b38d1a7019 (patch) | |
tree | a689773765fd02cf07b35e73d2e876f4ddd4a234 /utils/iserv/cbits | |
parent | 8529fbba309cd692bbbb0386321515d05a6ed256 (diff) | |
download | haskell-7c173b9043f7a9a5da46c5b0cc5fc3b38d1a7019.tar.gz |
Move `iserv` into `utils` and change package name from `iserv-bin` to `iserv`
This is done for consistency. We usually call the package file the same name the
folder has. The move into `utils` is done so that we can move the library into
`libraries/iserv` and the proxy into `utils/iserv-proxy` and then break the
`iserv.cabal` apart. This will make building the cross compiler with TH
simpler, because we can build the library and proxy as separate packages.
Reviewers: bgamari, simonmar, goldfire, erikd
Reviewed By: simonmar
Subscribers: tdammers, rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4377
Diffstat (limited to 'utils/iserv/cbits')
-rw-r--r-- | utils/iserv/cbits/iservmain.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/iserv/cbits/iservmain.c b/utils/iserv/cbits/iservmain.c new file mode 100644 index 0000000000..daefd35251 --- /dev/null +++ b/utils/iserv/cbits/iservmain.c @@ -0,0 +1,17 @@ +#include "../rts/PosixSource.h" +#include "Rts.h" + +#include "HsFFI.h" + +int main (int argc, char *argv[]) +{ + RtsConfig conf = defaultRtsConfig; + + // We never know what symbols GHC will look up in the future, so + // we must retain CAFs for running interpreted code. + conf.keep_cafs = 1; + + conf.rts_opts_enabled = RtsOptsAll; + extern StgClosure ZCMain_main_closure; + hs_main(argc, argv, &ZCMain_main_closure, conf); +} |