Add the cross-compilation flags to the options parser
authorIan Lynagh <igloo@earth.li>
Wed, 23 Mar 2011 21:23:55 +0000 (21:23 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 23 Mar 2011 21:23:55 +0000 (21:23 +0000)
Main.hs

diff --git a/Main.hs b/Main.hs
index 5e77652..bed632e 100644 (file)
--- a/Main.hs
+++ b/Main.hs
@@ -85,6 +85,10 @@ options = [
         "as if placed in the source",
     Option []    ["no-compile"] (NoArg  NoCompile)
         "stop after writing *_hsc_make.c",
+    Option ['x'] ["cross-compile"] (NoArg CrossCompile)
+        "activate cross-compilation mode",
+    Option [] ["cross-safe"] (NoArg CrossSafe)
+        "restrict .hsc directives to those supported by --cross-compile",
     Option ['k'] ["keep-files"] (NoArg KeepFiles)
         "do not remove temporary files",
     Option ['v'] ["verbose"]    (NoArg  Verbose)