Notes |
|
|
Actually, the problem may be that the source distribution is built with --no-smart-indexing.
(The other approaches for string switches shouldn't bump into these sort of limitations.) |
|
|
|
It's fine if you rebuild the .c files with --smart-indexing. In the long term, I would like to be able
to compile the MSVC version of Mercury directly from the source distribution. Some options here are:
(1) Work out whether --smart-indexing is still causing problems with the source distribution.
(2) Manually, break long_options/2 into smaller chunks.
(3) If compiling with --no-smart-indexing then change the MLDS code generator so that
it breaks deeply nested if-then-else chains into separate C functions -- i.e. get the code generator
to do (2). |
|
|
|
The source distribution C files are now built with --smart-indexing enabled (option 1 above). |
|