Ignore failures to create timestamp files

On Windows, parallel jobs creating the same timestamp file, such as the extension builds or `make enc` and `make trans`, fail with a sharing violation while the file exists anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hiroshi SHIBATA 2026-10-10 08:13:35 +09:00
parent 2b40a19704
commit 10c4c7111c
Notes: git 2026-10-14 23:01:09 +00:00
2 changed files with 4 additions and 4 deletions

View File

@ -87,11 +87,11 @@ srcs: $(TRANSCSRCS)
$(ENC_TRANS_D):
$(Q) $(MAKEDIRS) enc/trans
@exit > $@
-@exit > $@
$(ENC_TRANS_SO_D):
$(Q) $(MAKEDIRS) $(TRANSSODIR)
@exit > $@
-@exit > $@
$(ENCOBJS) $(TRANSOBJS): $(ENC_TRANS_D)
$(ENCSOS) $(TRANSSOS): $(ENC_TRANS_SO_D)

View File

@ -2636,11 +2636,11 @@ static: #{$extmk && !$static ? "all" : %[$(STATIC_LIB)#{$extout ? " install-rb"
end
end
if target and !dirs.include?(sodir)
mfile.print "$(TARGET_SO_DIR_TIMESTAMP):\n\t$(Q) $(MAKEDIRS) $(@D) #{sodir}\n\t$(Q) $(TOUCH) $@\n"
mfile.print "$(TARGET_SO_DIR_TIMESTAMP):\n\t$(Q) $(MAKEDIRS) $(@D) #{sodir}\n\t-$(Q) $(TOUCH) $@\n"
end
dirs.each do |d|
t = timestamp_file(d, target_prefix)
mfile.print "#{t}:\n\t$(Q) $(MAKEDIRS) $(@D) #{d}\n\t$(Q) $(TOUCH) $@\n"
mfile.print "#{t}:\n\t$(Q) $(MAKEDIRS) $(@D) #{d}\n\t-$(Q) $(TOUCH) $@\n"
end
mfile.print <<-SITEINSTALL