mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
tools,gyp: don't force build actions with multiple outputs
Don't add `force_append` (FORCE_DO_CMD) to the intermediate sentinal. Adding it makes the action run alway, even when there are no changes. (refack): AFAICT because `*.intermediate` files don't have build rules. PR-URL: https://github.com/nodejs/node/pull/23156 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
1 parent
180099a5ac
commit
d8cedf545e
1 file changed
+4
-2
@@ -1758,8 +1758,10 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
|
||||
self.WriteLn('%s: %s' % (' '.join(outputs), intermediate))
|
||||
self.WriteLn('\t%s' % '@:');
|
||||
self.WriteLn('%s: %s' % ('.INTERMEDIATE', intermediate))
|
||||
self.WriteLn('%s: %s%s' %
|
||||
(intermediate, ' '.join(inputs), force_append))
|
||||
# Don't add `force_append` (FORCE_DO_CMD) to the intermediate sentinal.
|
||||
# Adding it makes the action run alway, even when there are no changes.
|
||||
# (refack): AFAICT because `*.intermediate` files don't have build rules.
|
||||
self.WriteLn('%s: %s' % (intermediate, ' '.join(inputs)))
|
||||
actions.insert(0, '$(call do_cmd,touch)')
|
||||
|
||||
if actions:
|
||||
|
||||
Reference in new issue
Block a user