Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insufficient check when configuring autotools and cross compiling using clang on Linux #41581

Closed
abique opened this issue Oct 15, 2024 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@abique
Copy link
Contributor

abique commented Oct 15, 2024

Hi,

The following check is insufficient to detect cross compilation when using clang on Linux, because it only works with gcc.

if(VCPKG_DETECTED_CMAKE_C_COMPILER MATCHES "([^\/]*)-gcc$" AND CMAKE_MATCH_1)

How would you suggest to fix it?

Cheers,
Alex

@abique abique changed the title Insufficient check when cross compiling using clang on Linux Insufficient check when configuring autotools and cross compiling using clang on Linux Oct 15, 2024
@dg0yt
Copy link
Contributor

dg0yt commented Oct 15, 2024

Do you use a custom triplet file? Then put the desired options into VCPKG_MAKE_BUILD_TRIPLET in that file.

@LilyWangLL LilyWangLL added the category:question This issue is a question label Oct 16, 2024
@abique
Copy link
Contributor Author

abique commented Oct 16, 2024

Yes I use a custom triple and toolchain.
Thanks!

@abique abique closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants