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

Compile lib instead of executable when checking compiler features #23329

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bearbones
Copy link

@bearbones bearbones commented Jan 11, 2025

Description

check_cxx_compiler_flag uses try_compile with a basic source file. try_compile can build a static library, but builds an executable by default. For mobile builds, this means using the SDK to create an app package, which adds unnecessary time to the configuration stage.

Motivation and Context

In particular, I am addressing a problem where an iOS build on a private project sometimes hangs during one of these calls, leading to a build timeout

…ures

`check_cxx_compiler_flag` uses `try_compile` with a basic source file. `try_compile` can build a static library, but builds an executable by default. For mobile builds, this means using the SDK to create an app package, which adds unnecessary time to the configuration stage. 

In particular, I am addressing a problem where an iOS build sometimes hangs during one of these calls, leading to a build timeout
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.

1 participant