summaryrefslogtreecommitdiff
path: root/gcc/melt-build.mk
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-06 10:19:59 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-06 10:19:59 +0000
commit2239f7a7d2ed8f7a8adab72657d313162158836a (patch)
treee488cee003bbbb607d42dd68fac74e4694bf1f25 /gcc/melt-build.mk
parent74ebb6f368df9ba2582f8f8049efd835799c2cbf (diff)
downloadgcc-2239f7a7d2ed8f7a8adab72657d313162158836a.tar.gz
2010-12-06 Basile Starynkevitch <basile@starynkevitch.net>
* common.opt (-fmelt-debug-skip): Add synonym for -fmelt-debugskip. (-fmelt-bootstrapping): Add new flag. * melt-runtime.c (flag_melt_bootstrapping): Add for plugins. (melt_argument): Handle debug-skip synonym and bootstrapping. (compile_gencsrc_to_binmodule, meltgc_make_load_melt_module) (meltgc_load_modulelist, meltgc_read_file): Handle bootstrapping by skipping builtin or environment directories. (melt_really_initialize): Show a message when bootstrapping. * mel-build.tpl (meltarg_bootstrapping): New. (MELTCCINIT1, MELTCCFILE1): Use it. (empty-file-for-melt.c): Add. * melt-built.mk: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@167488 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/melt-build.mk')
-rw-r--r--gcc/melt-build.mk14
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/melt-build.mk b/gcc/melt-build.mk
index 332fc10d78f..f1b0e042fae 100644
--- a/gcc/melt-build.mk
+++ b/gcc/melt-build.mk
@@ -39,6 +39,7 @@ meltarg_source_path=$(if $(melt_is_plugin),-fplugin-arg-melt-source-path,-fmelt-
meltarg_tempdir=$(if $(melt_is_plugin),-fplugin-arg-melt-tempdir,-fmelt-tempdir)
meltarg_arg=$(if $(melt_is_plugin),-fplugin-arg-melt-arg,-fmelt-arg)
+meltarg_bootstrapping=$(if $(melt_is_plugin),-fplugin-arg-melt-bootstrapping,-fmelt-bootstrapping)
meltarg_makefile=$(if $(melt_is_plugin),-fplugin-arg-melt-module-makefile,-fmelt-module-makefile)
meltarg_makecmd=$(if $(melt_is_plugin),-fplugin-arg-melt-module-make-command,-fmelt-module-make-command)
meltarg_arglist=$(if $(melt_is_plugin),-fplugin-arg-melt-arglist,-fmelt-arglist)
@@ -49,15 +50,13 @@ meltarg_output=$(if $(melt_is_plugin),-fplugin-arg-melt-output,-fmelt-output)
MELTCCINIT1=$(melt_make_cc1) $(melt_make_cc1flags) -Wno-shadow $(meltarg_mode)=translateinit \
$(meltarg_makefile)=$(melt_make_module_makefile) \
$(meltarg_makecmd)=$(MAKE) \
- $(meltarg_tempdir)=. $(MELT_DEBUG)
+ $(meltarg_tempdir)=. $(meltarg_bootstrapping) $(MELT_DEBUG)
## the invocation to translate the other files
MELTCCFILE1=$(melt_make_cc1) $(melt_make_cc1flags) -Wno-shadow $(meltarg_mode)=translatefile \
- $(meltarg_module_path)=.:$(melt_make_module_dir) \
$(meltarg_makefile)=$(melt_make_module_makefile) \
$(meltarg_makecmd)=$(MAKE) \
- $(meltarg_source_path)=.:$(melt_make_source_dir):$(melt_make_source_dir)/generated:$(melt_source_dir) \
- $(meltarg_tempdir)=. $(MELT_DEBUG)
+ $(meltarg_tempdir)=. $(meltarg_bootstrapping) $(MELT_DEBUG)
vpath %.so $(melt_make_module_dir) .
@@ -90,6 +89,8 @@ MELT_APPLICATION_BASE= \
xtramelt-opengpu \
+
+
## The cold stage 0 of the translator
MELT_GENERATED_FIRST_C_FILES= \
@@ -378,6 +379,11 @@ melt-stage0-dynamic/warmelt-0.modlis: \
$(melt_make_move) $@-tmp $@
+## An empty file is needed for every MELT translation!
+empty-file-for-melt.c:
+ date +"/* empty-file-for-melt.c %c */" > $@-tmp
+ mv $@-tmp $@
+
## can be overridden manually to either melt-stage0-dynamic or
## melt-stage0-static
.PHONY: warmelt0