Fixed a compilation error that was causing opt to not have its
authordtrg <none@none>
Tue, 20 Feb 2007 00:27:01 +0000 (00:27 +0000)
committerdtrg <none@none>
Tue, 20 Feb 2007 00:27:01 +0000 (00:27 +0000)
peephole optimisation tables, which would make it generate
duff code.

util/opt/pmfile

index 900d400..8cbcb49 100644 (file)
@@ -44,8 +44,9 @@ local local_tool_opt = cprogram {
                simple {
                        outputs = {"%U%-pattern.c"},
                        command = {
-                               "%in[1]% %in[2]% > %out%"
+                               "%in[1]% %in[2]% > %out%"
                        },
+                       install = pm.install("pattern.c"),
 
                        cprogram {
                                CLIBRARIES = {PARENT, "fl"},
@@ -66,7 +67,9 @@ local local_tool_opt = cprogram {
                                lib_em_data,
                        },
 
-                       file (d.."patterns")
+                       preprocess {
+                               file (d.."patterns")
+                       }
                }
        },
 
@@ -95,7 +98,12 @@ tool_opt = group {
 
 -- Revision history
 -- $Log$
--- Revision 1.3  2006-10-15 00:28:12  dtrg
+-- Revision 1.4  2007-02-20 00:27:01  dtrg
+-- Fixed a compilation error that was causing opt to not have its
+-- peephole optimisation tables, which would make it generate
+-- duff code.
+--
+-- Revision 1.3  2006/10/15 00:28:12  dtrg
 -- Updated to the version 0.1 of Prime Mover (which involves some syntax changes).
 --
 -- Revision 1.2  2006/07/20 23:10:07  dtrg