Commit 024c843
Makefile: add option to disable automatic dependency generation
Now that the COMPUTE_HEADER_DEPENDENCIES feature is turned on
automatically for compilers that support it (see v1.7.8-rc0~142^2~1,
2011-08-18), there is no easy way to force it off. For example,
setting COMPUTE_HEADER_DEPENDENCIES to the empty string in config.mak
just tells the makefile to treat it as undefined and run a test
command to see if the -MMD option is supported.
So allow setting COMPUTE_HEADER_DEPENDENCIES=no to explicitly force
the feature off. The new semantics:
- "yes" means to explicitly enable the feature
- "no" means to disable it
- "auto" means to autodetect
The default is still "auto". Any value other than these three will
cause the build to error out with a descriptive message so typos and
stale settings in config.mak don't result in mysterious behavior.
Makefile:1278: *** please set COMPUTE_HEADER_DEPENDENCIES to
yes, no, or auto (not "1"). Stop.
So now when someone using a compiler without -MMD support reports
trouble building git, you can reproduce it by running "make
COMPUTE_HEADER_DEPENDENCIES=no".
Suggested-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Improved-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Tested-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 4c00c85 commit 024c843
1 file changed
Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
1246 | 1252 | | |
1247 | 1253 | | |
1248 | 1254 | | |
1249 | | - | |
| 1255 | + | |
1250 | 1256 | | |
1251 | | - | |
| 1257 | + | |
| 1258 | + | |
1252 | 1259 | | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1253 | 1264 | | |
1254 | 1265 | | |
1255 | 1266 | | |
1256 | 1267 | | |
1257 | | - | |
1258 | | - | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
1259 | 1271 | | |
1260 | 1272 | | |
1261 | 1273 | | |
1262 | | - | |
| 1274 | + | |
1263 | 1275 | | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1264 | 1281 | | |
1265 | 1282 | | |
1266 | 1283 | | |
| |||
1907 | 1924 | | |
1908 | 1925 | | |
1909 | 1926 | | |
1910 | | - | |
| 1927 | + | |
1911 | 1928 | | |
1912 | 1929 | | |
1913 | 1930 | | |
| |||
1920 | 1937 | | |
1921 | 1938 | | |
1922 | 1939 | | |
1923 | | - | |
| 1940 | + | |
1924 | 1941 | | |
1925 | 1942 | | |
1926 | 1943 | | |
| |||
0 commit comments