forked from Imagelibrary/binutils-gdb
Allow spaces in the name of the external preprocessor used by windres.
PR 26865 * windres.c (main): If the preprocessor name includes spaces, ensure that it is quoted.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2020-11-27 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 26865
|
||||||
|
* windres.c (main): If the preprocessor name includes spaces,
|
||||||
|
ensure that it is quoted.
|
||||||
|
|
||||||
2020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
2020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
||||||
|
|
||||||
* testsuite/lib/binutils-common.exp (supports_noinit_section): New.
|
* testsuite/lib/binutils-common.exp (supports_noinit_section): New.
|
||||||
|
|||||||
@@ -885,6 +885,12 @@ main (int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case OPTION_PREPROCESSOR:
|
case OPTION_PREPROCESSOR:
|
||||||
|
if (strchr (optarg, ' '))
|
||||||
|
{
|
||||||
|
if (asprintf (& preprocessor, "\"%s\"", optarg) == -1)
|
||||||
|
preprocessor = optarg;
|
||||||
|
}
|
||||||
|
else
|
||||||
preprocessor = optarg;
|
preprocessor = optarg;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user