From ae2a98efba13eb906271f329d3483ac9ff98519e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 13 Nov 2018 00:33:19 +0200 Subject: [PATCH] windres: Ignore the --use-temp-file option This option seems to be used occasionally by projects to work around various issues with popen in GNU windres. Our windres wrapper always uses a temp file for the preprocessing output, so for us the option is a no-op. --- wrappers/windres-wrapper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrappers/windres-wrapper.c b/wrappers/windres-wrapper.c index 7b5a03c..a0c5f99 100644 --- a/wrappers/windres-wrapper.c +++ b/wrappers/windres-wrapper.c @@ -175,6 +175,7 @@ static void print_help(void) { " -D, --define Define to pass to preprocessor.\n" " -U, --undefine Undefine to pass to preprocessor.\n" " -c, --codepage Default codepage to use when reading an rc file (0x0-0xffff).\n" +" --use-temp-file Use a temporary file for the preprocessing output.\n" " -v, --verbose Enable verbose output.\n" " -V, --version Display version.\n" " -h, --help Display this message and exit.\n" @@ -325,6 +326,8 @@ int _tmain(int argc, TCHAR* argv[]) { print_version(); } else IF_MATCH_EITHER("-h", "--help") { print_help(); + } else if (!_tcscmp(argv[i], _T("--use-temp-file"))) { + // No-op, we use a temp file by default. } else if (_tcsstart(argv[i], _T("-"))) { error(basename, _T("unrecognized option: `"TS"'"), argv[i]); } else {