summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-08-05 01:11:37 +0000
committerIan Lynagh <igloo@earth.li>2010-08-05 01:11:37 +0000
commit320738062c7a81f062c5adab98a1a1c4fdbd4bc7 (patch)
treec7852c0dae4d2c50b78797fab6ce65a6e88da98f /includes
parentd0fb9a95f40453321b82e23d9b322e79340b48c9 (diff)
downloadhaskell-320738062c7a81f062c5adab98a1a1c4fdbd4bc7.tar.gz
Make -rtsopts more flexible
The default is a new "some" state, which allows only known-safe flags that we want on by default. Currently this is only "--info".
Diffstat (limited to 'includes')
-rw-r--r--includes/RtsOpts.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/RtsOpts.h b/includes/RtsOpts.h
new file mode 100644
index 0000000000..e81a41c7df
--- /dev/null
+++ b/includes/RtsOpts.h
@@ -0,0 +1,16 @@
+/* -----------------------------------------------------------------------------
+ *
+ * (c) The GHC Team, 2010
+ *
+ * En/disable RTS options
+ *
+ * ---------------------------------------------------------------------------*/
+
+#ifndef RTSOPTS_H
+#define RTSOPTS_H
+
+typedef enum {rtsOptsNone, rtsOptsSafeOnly, rtsOptsAll} rtsOptsEnabledEnum;
+
+extern const rtsOptsEnabledEnum rtsOptsEnabled;
+
+#endif /* RTSOPTS_H */