Skip to content

Commit 4e3625f

Browse files
committed
Add rule for dummy config.h
1 parent 2cefc23 commit 4e3625f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

common.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,8 @@ install-prereq: $(CLEAR_INSTALLED_LIST) yes-fake sudo-precheck PHONY
677677
clear-installed-list: PHONY
678678
@> $(INSTALLED_LIST) set MAKE="$(MAKE)"
679679

680+
noarch_config_h = tmp/include/noarch/ruby/config.h
681+
680682
clean: clean-ext clean-enc clean-golf clean-docs clean-extout clean-modular-gc clean-local clean-platform clean-spec
681683
clean-local:: clean-runnable
682684
$(Q)$(RM) $(ALLOBJS) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
@@ -685,6 +687,7 @@ clean-local:: clean-runnable
685687
$(Q)$(RM) probes.h probes.$(OBJEXT) probes.stamp ruby-glommed.$(OBJEXT) ruby.imp ChangeLog $(STATIC_RUBY)$(EXEEXT)
686688
$(Q)$(RM) GNUmakefile.old Makefile.old $(arch)-fake.rb bisect.sh $(ENC_TRANS_D) builtin_binary.rbbin
687689
$(Q)$(RM) $(PRISM_BUILD_DIR)/.time $(PRISM_BUILD_DIR)/*/.time yjit_exit_locations.dump
690+
$(Q)$(RM) $(noarch_config_h)
688691
-$(Q)$(RMALL) dump_ast$(BUILD_EXEEXT)*
689692
-$(Q)$(RMALL) target
690693
-$(Q) $(RMDIR) enc/jis enc/trans enc $(COROUTINE_H:/Context.h=) coroutine target \
@@ -858,6 +861,12 @@ $(arch:noarch=ignore)-fake.rb: $(srcdir)/template/fake.rb.in $(tooldir)/generic_
858861
i=- srcdir="$(srcdir)" BASERUBY="$(BASERUBY)" \
859862
LIBPATHENV="$(LIBPATHENV)" PRELOADENV="$(PRELOADENV)" LIBRUBY_SO="$(LIBRUBY_SO)"
860863

864+
# dummy file for generating sources; $(arch_hdrdir)/ruby/config.h with prereq.status.
865+
$(noarch_config_h):
866+
$(ECHO) generating dummy config.h
867+
$(Q) $(MAKEDIRS) $(@D)
868+
$(Q) $(TOUCH) $@
869+
861870
noarch-fake.rb: # prerequisite of yes-fake
862871
$(Q) exit > $@
863872

0 commit comments

Comments
 (0)