File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1022,8 +1022,8 @@ source file of a compile command.
1022
1022
+
1023
1023
This is for expressing dependencies that don't show up on the
1024
1024
command line of the command; for example, for a rule that runs a
1025
- script that reads a hardcoded file, the hardcoded file should
1026
- be an implicit dependency, as changes to the file should cause
1025
+ script that reads a hardcoded file, the hardcoded file should
1026
+ be an implicit dependency, as changes to the file should cause
1027
1027
the output to rebuild, even though it doesn't show up in the arguments.
1028
1028
+
1029
1029
Note that dependencies as loaded through depfiles have slightly different
@@ -1207,6 +1207,7 @@ as follows:
1207
1207
----
1208
1208
rule f95
1209
1209
command = f95 -o $out -c $in
1210
+ restat = 1
1210
1211
rule fscan
1211
1212
command = fscan -o $out $in
1212
1213
@@ -1232,7 +1233,8 @@ build bar.o: dyndep | foo.mod
1232
1233
Ninja will load this file to add `foo.mod` as an implicit output of
1233
1234
`foo.o` and implicit input of `bar.o` . This ensures that the Fortran
1234
1235
sources are always compiled in the proper order and recompiled when
1235
- needed.
1236
+ needed. The `restat = 1` is needed because
1237
+ https://github.com/ninja-build/ninja/pull/2275[the fortran compiler does not update the timestamp of the module files if they already exist].
1236
1238
1237
1239
Tarball Extraction
1238
1240
^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments