Skip to content

Conversation

@NobodyXu
Copy link
Contributor

@NobodyXu NobodyXu commented Mar 7, 2024

While the compiler automatically detected by cc always is a valid str, it is possible for user to override them using environment variable CC, CXX and AR, which could contain non utf-8 characters.

Before this PR is applied, cc uses to_string_lossy() to convert it to a valid str which might cause the creation of process to fail.

NobodyXu added 5 commits March 7, 2024 18:38
They are only used in `Build::compile_objects` with `&Path`,
so there is no need to use generics.

Signed-off-by: Jiahao XU <[email protected]>
@NobodyXu NobodyXu merged commit 2a0bf2b into main Mar 7, 2024
@NobodyXu NobodyXu deleted the fix/compile-family-detection branch March 7, 2024 10:23
Copy link
Member

@thomcc thomcc left a comment

Choose a reason for hiding this comment

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

Looks fine.

(I feel good enough to start easing myself back into reviews of small stuff like this)

@thomcc
Copy link
Member

thomcc commented Mar 7, 2024

Oh, it was already reviewed.

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.

4 participants