CM problem with conditional inclusion
I work with SML/NJ on two systems:
One is running Linux and SML/NJ 110.0.6
The other is running Mac OS X (Tiger) and SML/NJ 110.54.
I would like to use just one .cm file to make the project. Due to
differences between the SML/NJ versions, I use conditional inclusion.
However, on the Mac, the following fails with CM.make "sources.cm";
Group is
systemWrapper.sig (* my own file defining wrapper functions *)
#if defined(NEW_CM)
$/basis.cm
$/ml-yacc-lib.cm
systemWrapper.mac.110.54.sml (* my own file *)
#else
/usr/local/lib/NJsml/110.0.6/src/ml-yacc/lib/sources.cm
systemWrapper.linux.110.0.6.sml
#endif
...
with an error about being unable to classify #if.
The same file works fine with CM.make (); on the Linux system.
I couldn't find information in the CM manual or on Google. Has anyone
had similar problems?
|