]> git.ipfire.org Git - thirdparty/gcc.git/commit
'gcc/config/nvptx/t-nvptx': Don't use the 'shell' function of 'make'
authorThomas Schwinge <tschwinge@baylibre.com>
Mon, 2 Dec 2024 14:06:58 +0000 (15:06 +0100)
committerThomas Schwinge <tschwinge@baylibre.com>
Fri, 6 Dec 2024 08:57:49 +0000 (09:57 +0100)
commit490443357668a87e3c322f218873a7649a2552df
tree7719dbfc4b705333767e41eda62453f3913b3780
parent4ab02a7b26b1845de1e61d8145678da7215442fa
'gcc/config/nvptx/t-nvptx': Don't use the 'shell' function of 'make'

The exit status of the command invoked in a 'Makefile' via '$(shell [...])'
effectively gets discarded (unless explicitly checking the GNU Make 4.2+
'.SHELLSTATUS' variable or jumping through other hoops).  In order to be able
to catch errors in what the 'shell' function invokes, let's make things
explicit: similar to how 'gcc/config/avr/t-avr' is doing with 't-multilib-avr',
for example.

gcc/
* config/nvptx/t-nvptx (multilib_matches): Don't use the 'shell'
function of 'make'.
* config/nvptx/gen-multilib-matches.sh: Adjust.
gcc/config/nvptx/gen-multilib-matches.sh
gcc/config/nvptx/t-nvptx