Build profiling libraries on `validate --slow` (#11496)
[ghc.git] / iserv / iservmain.c
1 #include "../rts/PosixSource.h"
2 #include "Rts.h"
3
4 #include "HsFFI.h"
5
6 int main (int argc, char *argv[])
7 {
8 RtsConfig conf = defaultRtsConfig;
9
10 // We never know what symbols GHC will look up in the future, so
11 // we must retain CAFs for running interpreted code.
12 conf.keep_cafs = 1;
13
14 extern StgClosure ZCMain_main_closure;
15 hs_main(argc, argv, &ZCMain_main_closure, conf);
16 }