[llvm-commits] [dragonegg] r133278 - /dragonegg/trunk/Makefile

Duncan Sands baldrick at free.fr
Fri Jun 17 12:18:44 PDT 2011


Author: baldrick
Date: Fri Jun 17 14:18:44 2011
New Revision: 133278

URL: http://llvm.org/viewvc/llvm-project?rev=133278&view=rev
Log:
Get the garbage collector header target working with gcc-4.6 and newer.

Modified:
    dragonegg/trunk/Makefile

Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=133278&r1=133277&r2=133278&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Fri Jun 17 14:18:44 2011
@@ -104,12 +104,12 @@
 -include $(ALL_OBJECTS:.o=.d)
 
 # The following target exists for the benefit of the dragonegg maintainers, and
-# is not used in a normal build.
+# is not used in a normal build.  You need to specify the path to the GCC build
+# directory in GCC_BUILD_DIR.
 GENGTYPE_INPUT=$(SRC_DIR)/cache.c
 GENGTYPE_OUTPUT=$(INCLUDE_DIR)/dragonegg/gt-cache.h
 gt-cache.h::
-	cd $(HOME)/GCC/objects/gcc && ./build/gengtype \
-	  -P $(GENGTYPE_OUTPUT) $(GCC_PLUGIN_DIR) gtyp-input.list \
-	    $(GENGTYPE_INPUT)
-	sed -i "s/ggc_cache_tab .*\[\]/ggc_cache_tab gt_ggc_rc__gt_cache_h[]/" $(GENGTYPE_OUTPUT)
-	sed -i "s/ggc_root_tab .*\[\]/ggc_root_tab gt_pch_rc__gt_cache_h[]/" $(GENGTYPE_OUTPUT)
+	$(QUIET)$(GCC_BUILD_DIR)/gcc/build/gengtype \
+	-r $(GCC_BUILD_DIR)/gcc/gtype.state \
+	-P $(GENGTYPE_OUTPUT) $(GENGTYPE_INPUT)
+	$(QUIET)sed -i "s/__.*gt/__gt/" $(GENGTYPE_OUTPUT)





More information about the llvm-commits mailing list