Browse Source

Added a workaround for an OSX compiler bug.

dtrg 18 years ago
parent
commit
1799cb0706
1 changed files with 10 additions and 1 deletions
  1. 10 1
      util/LLgen/pmfile

+ 10 - 1
util/LLgen/pmfile

@@ -18,6 +18,12 @@ INSTALLPATH = "bin/"
 
 LLgen = cprogram {
 	CEXTRAFLAGS = '-DLIBDIR=\\"'..PREFIX..'share/LLgen\\" -DNON_CORRECTING',
+	
+	-- This line is needed to work around an OSX bug --- Apple's hacked gcc's
+	-- preprocessor doesn't find LLgen.c's include files properly. Don't know
+	-- why.
+	
+	CINCLUDES = {PARENT, "-Isrc"},
 
 	cfile "src/main.c",
 	cfile "src/gencode.c",
@@ -107,6 +113,9 @@ install = group {
 
 -- Revision history
 -- $Log$
--- Revision 1.2  2006-07-21 11:15:14  dtrg
+-- Revision 1.3  2006-07-23 20:33:26  dtrg
+-- Added a workaround for an OSX compiler bug.
+--
+-- Revision 1.2  2006/07/21 11:15:14  dtrg
 -- Updated to the latest version of pm.
 --