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