]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc: Make exec-tool.in handle missing Binutils more gracefully
authorJonathan Wakely <jwakely@redhat.com>
Sun, 28 Jul 2024 10:34:17 +0000 (11:34 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 28 Jul 2024 19:02:23 +0000 (20:02 +0100)
commit6a55ff29578e8afbe795547468a78494b3b52831
treea2e1bd154c56f528a1c621ca2946dab200312109
parent0f1de0c4ce6eb237128d8f6439c2434aded1f51a
gcc: Make exec-tool.in handle missing Binutils more gracefully

When users try to build a cross-compiler without first installing
binutils they get confusing errors like:
/tmp/gcc-obj/./gcc/as: line 114: exec: -m: invalid option

This is an incredibly common source of questions on gcc-help and IRC,
and bogus bug reports e.g. see PR 116119 for the latest example.

This change adds an explicit check for an empty $original variable and
exits with a user-friendly error.

gcc/ChangeLog:

* exec-tool.in: Exit with an error if $original is empty.
gcc/exec-tool.in