commit | fadaf8f7f99f8fe81aa8403c5d90c95cae5bd2ec | [log] [tgz] |
---|---|---|
author | Clément Chigot <chigot@adacore.com> | Thu Jun 16 13:43:26 2022 +0200 |
committer | Clément Chigot <chigot@adacore.com> | Tue Jun 28 16:53:23 2022 +0200 |
tree | 4b038d634af1070ec944354a2979b8cab0622bb1 | |
parent | dbcbf67ca565ec29f13a2302dcdf9b01ef7832ca [diff] |
windres: add quotes around preprocessor cmd if needed This patch ensures that the gcc binary called by windres is quoted if needed. Otherwise, errors can occur if the gcc is under a folder having a name containing a space (eg "Program Files"). binutils/ * resrc.c (DEFAULT_PREPROCESSOR): Split into... (DEFAULT_PREPROCESSOR_CMD): that... (DEFAULT_PREPROCESSOR_ARGS): and that. (look_for_default): Add quotes around the command if needed. (read_rc_file): Adapt to new defines.