diff options
author | Phillip Lord <phillip.lord@russet.org.uk> | 2017-03-16 09:00:59 +0000 |
---|---|---|
committer | Phillip Lord <phillip.lord@russet.org.uk> | 2017-03-16 09:00:59 +0000 |
commit | fb67b1275fe6e473e70de247c6340cba0e9a50dc (patch) | |
tree | 4928c6269108533a0e2cac5f1e2f70c1d3cf1ba0 /src | |
parent | a3207a383009720bbd89327425e0eb1c9c20c267 (diff) | |
download | emacs-feature/temacs-for-bootstrap.tar.gz |
Building ldefs-boot with temacsfeature/temacs-for-bootstrap
Initial attempts, currently breaking.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.in | 9 | ||||
-rw-r--r-- | src/emacs.c | 9 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 1bc9a76cde5..a2221708afa 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -56,6 +56,7 @@ lwlibdir = ../lwlib config_h = config.h $(srcdir)/conf_post.h bootstrap_exe = ../src/bootstrap-emacs$(EXEEXT) +temacs_exe = ../src/temacs$(EXEEXT) ## ns-app if HAVE_NS, else empty. OTHER_FILES = @OTHER_FILES@ @@ -745,10 +746,18 @@ VCSWITNESS = $(lispsource)/loaddefs.el: $(VCSWITNESS) | bootstrap-emacs$(EXEEXT) $(MAKE) -C ../lisp autoloads EMACS="$(bootstrap_exe)" +temacs-loaddefs: + $(MAKE) -C ../lisp temacs-loaddefs + +.PHONY: temacs-loaddefs + ## Dump an Emacs executable named bootstrap-emacs containing the ## files from loadup.el in source form. bootstrap-emacs$(EXEEXT): temacs$(EXEEXT) $(MAKE) -C ../lisp update-subdirs + if test ! -f $(lispsource)/loaddefs.el; then \ + $(MAKE) temacs-loaddefs; \ + fi ifeq ($(CANNOT_DUMP),yes) ln -f temacs$(EXEEXT) $@ else diff --git a/src/emacs.c b/src/emacs.c index 1868961090d..b07c15fb2cb 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -670,6 +670,7 @@ main (int argc, char **argv) bool dumping; int skip_args = 0; bool no_loadup = false; + bool load_temacs = false; char *junk = 0; char *dname_arg = 0; #ifdef DAEMON_MUST_EXEC @@ -1251,6 +1252,9 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem no_loadup = argmatch (argv, argc, "-nl", "--no-loadup", 6, NULL, &skip_args); + load_temacs + = argmatch (argv, argc, "-lt", "--load-temacs", 6, NULL, &skip_args); + no_site_lisp = argmatch (argv, argc, "-nsl", "--no-site-lisp", 11, NULL, &skip_args); @@ -1651,8 +1655,11 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem Vtop_level = list2 (Qload, build_unibyte_string (file)); } /* Unless next switch is -nl, load "loadup.el" first thing. */ - if (! no_loadup) + if (! (no_loadup || load_temacs)) Vtop_level = list2 (Qload, build_string ("loadup.el")); + + if (load_temacs) + Vtop_level = list2 (Qload, build_string ("temacs.el")); } /* Set up for profiling. This is known to work on FreeBSD, |