1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist
bors[bot] d08601ec97
Merge #19039
19039: Ensure C locale when querying the compiler for compile commands r=maribu a=janhenke

### Contribution description

This fixes generating the compile commands with localization enabled GCC and non-English shell locale. The python script uses regexes to extract the required information. These only match on the default English output. GCC supports localized output messages which break the regexes used. Instead of matching any possible localization, this fix forces the C locale for message output on the compiler invocation, thus ensuring the regexes can match.

### Testing procedure

Needed: arm-none-eabi.gcc with localization support and non-English system locale.
Invoke the compile-commands make target (`make compile-commands`).

It should generate the `compile_commands.json` file correctly.

### Issues/PRs references

None found, fix was trivial enough to fix it directly.


Co-authored-by: Jan Henke <Jan.Henke@taujhe.de>
2022-12-13 18:56:57 +00:00
..
pythonlibs riotctrl_shell.cord_ep: remove regif parameter 2022-10-10 10:57:37 +02:00
testbed-support make: Sort >/dev/null and 2>&1 when used with command 2022-04-16 10:04:20 +02:00
tools Merge #19039 2022-12-13 18:56:57 +00:00
empty.a make: OSX: don't fail for empty .a archives 2014-06-24 20:29:32 +02:00
gdbinit-docker tools: use 'BOARDSDIR' for the boards directory 2019-12-16 15:35:04 +01:00
Makefile makefiles: do not locally export compilation variables 2019-08-29 10:35:36 +02:00
usb_id_testing usb: Warn on test-ID usage in a unified location 2020-06-30 10:51:36 +02:00