Skip to content

Commit 45bd726

Browse files
committed
Recompile C exts if src/main/c/Makefile changes
* For example if --enable-bundled-libyaml is no longer passed to psych's extconf.rb, it is necessary to recompile.
1 parent 1bcd398 commit 45bd726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ABI_VERSION := $(ROOT)/lib/cext/ABI_version.txt
2525
RBCONFIG := $(ROOT)/lib/truffle/rbconfig.rb
2626
MKMF := $(ROOT)/lib/mri/mkmf.rb
2727
LIBTRUFFLERUBY = cext/libtruffleruby.$(SOEXT)
28-
BASIC_EXTCONF_DEPS := $(SPAWN_HELPER) $(TRUFFLE_POSIX) $(RUBY_HEADERS) $(ABI_VERSION) $(RBCONFIG) $(MKMF)
28+
BASIC_EXTCONF_DEPS := Makefile $(SPAWN_HELPER) $(TRUFFLE_POSIX) $(RUBY_HEADERS) $(ABI_VERSION) $(RBCONFIG) $(MKMF)
2929
# C extensions link against libtruffleruby (and might do have_func() checks against it), so it needs to be there before.
3030
# However, if libtruffleruby is recompiled, there is no need to rebuild C extensions, so it's a order-only-prerequisite.
3131
EXTCONF_DEPS := $(BASIC_EXTCONF_DEPS) | $(LIBTRUFFLERUBY)

0 commit comments

Comments
 (0)