Skip to content

fix: Error "can't find a native toolchain" when using non-english locale#24

Open
maikwoehl wants to merge 1 commit intoAdaCore:masterfrom
maikwoehl:fix-toolchain-detect-for-non-english-locale
Open

fix: Error "can't find a native toolchain" when using non-english locale#24
maikwoehl wants to merge 1 commit intoAdaCore:masterfrom
maikwoehl:fix-toolchain-detect-for-non-english-locale

Conversation

@maikwoehl
Copy link
Copy Markdown

Closes #21

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 6, 2025

CLA assistant check
All committers have signed the CLA.

Closes AdaCore#21

Signed-off-by: Maik Wöhl <maik.woehl@outlook.de>
@maikwoehl maikwoehl force-pushed the fix-toolchain-detect-for-non-english-locale branch from 38e0e60 to 4031558 Compare March 6, 2025 17:45
Comment thread db/compilers.xml
<external>$EXEC -v</external>
<nogrep regexp="for GNAT Pro"></nogrep>
<grep regexp="^gcc \S+ (\S+)" group="1"></grep>
<grep regexp="^gcc[- ]\S+ (\S+)" group="1"></grep>
Copy link
Copy Markdown
Author

@maikwoehl maikwoehl Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe using

Suggested change
<grep regexp="^gcc[- ]\S+ (\S+)" group="1"></grep>
<grep regexp="^gcc.\S+ (\S+)" group="1"></grep>

is better. In that case any character between gcc and [V,v]ersion can be matched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error "can't find a native toolchain" when using non-english locale

2 participants