Mercurial > urweb
diff src/main.mlton.sml @ 1922:5890ba37827c
Add -print-cinlude command line option
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Wed, 06 Nov 2013 13:54:07 +0400 |
parents | 6507e973af84 |
children | afdc823563de |
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)