[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MiG, -isystem and something...
From: |
Alfred M. Szmidt |
Subject: |
Re: MiG, -isystem and something... |
Date: |
Mon, 11 Apr 2005 23:17:54 +0200 |
Now that I have chilled for a while, how about making a smallish
change to MiG, add a new option, call it -file. And to call mig with
a file name, you need to specify that option. Then, we pass
_everything_ what we do not wish to handle to CPP, instead of making
special cases for stuff.
How about this? This will ofcourse make things totally incompatible,
so all usages of MiG in glibc, the Hurd, GNU Mach and any other place
that uses MiG will need to be updated.
The patch is not tested, but it might work if I am not still mad.
2005-04-11 Alfred M. Szmidt <ams@gnu.org>
* mig.in: New option -file. Pass all unknown options to the C
preprocessor.
--- mig.in 01 Jan 2002 00:41:42 +0100 1.10
+++ mig.in 11 Apr 2005 23:12:20 +0200
@@ -75,6 +75,7 @@ which Mach RPC stubs from \`.defs' files
-list FILE generate list of RPC names and message IDs in FILE
-n suppress default output file names, create only given files
-migcom use migcom instead of CPP
+ -file use FILE as input
Any switches not listed are passed on to the preprocessor, invoked by:
${cpp}
@@ -96,8 +97,8 @@ Report bugs to <bug-hurd@gnu.org>. Requ
-imacros ) cppflags="$cppflags $1 $2"; shift; shift;;
-cc) cpp="$2"; shift; shift;;
-migcom) migcom="$2"; shift; shift;;
- -* ) cppflags="$cppflags $1"; shift;;
- * ) files="$files $1"; shift;;
+ -file) files="$files $2"; shift; shift;;
+ *) cppflags="$cppflags $1"; shift;;
esac
done