changeset 1922:5890ba37827c

Add -print-cinlude command line option
author Sergey Mironov <grrwlf@gmail.com>
date Wed, 06 Nov 2013 13:54:07 +0400
parents 312b62cdaa48
children afdc823563de
files src/main.mlton.sml
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.mlton.sml	Fri Dec 06 08:44:26 2013 -0500
+++ b/src/main.mlton.sml	Wed Nov 06 13:54:07 2013 +0400
@@ -58,6 +58,8 @@
 			              raise Code OS.Process.success)
         fun printCCompiler () = (print ((Settings.getCCompiler ()) ^ "\n");
 			              raise Code OS.Process.success)
+        fun printCInclude () = (print ((Config.includ) ^ "\n");
+			              raise Code OS.Process.success)
 
         fun doArgs args =
             case args of
@@ -71,6 +73,8 @@
                  doArgs rest)
               | "-print-ccompiler" :: rest =>
                   printCCompiler ()
+              | "-print-cinclude" :: rest =>
+                  printCInclude ()
               | "-ccompiler" :: ccomp :: rest =>
                 (Settings.setCCompiler ccomp;
                  doArgs rest)