mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 04:50:28 +00:00
Avoid creating temporary output files
This change also removes the futimens() call on the Landlock Make output file workaround, since it caused problems with commands like fixupobj which modify-in-place. It turns out if a file is opened for writing and then no writes actually occur, then the modified time doesn't change.
This commit is contained in:
parent
4c3ab6d11e
commit
2d64b9994b
15 changed files with 502 additions and 446 deletions
|
@ -116,8 +116,8 @@ o/$(MODE)/tool/net/redbean.com: \
|
|||
o/$(MODE)/tool/net/redbean.com.dbg \
|
||||
o/$(MODE)/tool/build/symtab.com
|
||||
@$(COMPILE) -AOBJCOPY -T$@ $(OBJCOPY) -S -O binary $< $@
|
||||
@$(COMPILE) -ASYMTAB o/$(MODE)/tool/build/symtab.com -o $(SYMTAB) $<
|
||||
@$(COMPILE) -AZIP -T$@ $@ -A $(SYMTAB)
|
||||
@$(COMPILE) -wASYMTAB o/$(MODE)/tool/build/symtab.com -o $(SYMTAB) $<
|
||||
@$(COMPILE) -wAZIP -T$@ $@ -A $(SYMTAB)
|
||||
|
||||
# REDBEAN-DEMO.COM
|
||||
#
|
||||
|
@ -229,8 +229,8 @@ o/$(MODE)/tool/net/redbean-demo.com: \
|
|||
o/$(MODE)/tool/net/redbean-demo.com.dbg \
|
||||
o/$(MODE)/tool/build/symtab.com
|
||||
@$(COMPILE) -AOBJCOPY -T$@ $(OBJCOPY) -S -O binary $< $@
|
||||
@$(COMPILE) -ASYMTAB o/$(MODE)/tool/build/symtab.com -o $(SYMTAB) $<
|
||||
@$(COMPILE) -AZIP -T$@ $@ -A $(SYMTAB)
|
||||
@$(COMPILE) -wASYMTAB o/$(MODE)/tool/build/symtab.com -o $(SYMTAB) $<
|
||||
@$(COMPILE) -wAZIP -T$@ $@ -A $(SYMTAB)
|
||||
|
||||
# REDBEAN-STATIC.COM
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue