Skip to content

Commit 6b210cf

Browse files
committed
gen_stub: Update the arginfo file timestamp when generation is skipped
In case the script is started by the Makefile, the timestamp of the product needs to be updated even if no changes are needed, otherwise it will be started over and over without any effect.
1 parent 23f4b93 commit 6b210cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/gen_stub.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ function processStubFile(string $stubFile, Context $context, bool $includeOnly =
7878
$stubHash = computeStubHash($stubCode);
7979
$oldStubHash = extractStubHash($arginfoFile);
8080
if ($stubHash === $oldStubHash && !$context->forceParse) {
81-
/* Stub file did not change, do not regenerate. */
81+
/* Stub file did not change, do not regenerate, but update the timestamp */
82+
touch($arginfoFile);
8283
return null;
8384
}
8485
}

0 commit comments

Comments
 (0)