mirror of
https://github.com/ruby/ruby.git
synced 2026-11-08 01:20:26 +08:00
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:
parent
2b40a19704
commit
10c4c7111c
Notes:
git
2026-10-14 23:01:09 +00:00
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user