mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
Allow outputting dep files to stdout using -
This commit is contained in:
@@ -393,6 +393,9 @@ int main(int argc, char *argv[])
|
|||||||
case 'M':
|
case 'M':
|
||||||
ep = strchr("GPQT", optarg[0]);
|
ep = strchr("GPQT", optarg[0]);
|
||||||
if (!ep || !*ep || optarg[1]) {
|
if (!ep || !*ep || optarg[1]) {
|
||||||
|
if (!strcmp("-", optarg))
|
||||||
|
dependfile = stdout;
|
||||||
|
else
|
||||||
dependfile = fopen(optarg, "w");
|
dependfile = fopen(optarg, "w");
|
||||||
if (dependfile == NULL)
|
if (dependfile == NULL)
|
||||||
err(1, "Could not open dependfile %s",
|
err(1, "Could not open dependfile %s",
|
||||||
|
|||||||
Reference in New Issue
Block a user