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

build: minor tweaks for speeding up the configure phase #509

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

compnerd
Copy link
Contributor

@compnerd compnerd commented Jan 6, 2024

Only the C language is used unless we are building the ASAN or UBSAN build variants. Only check for the C language support, enabling C++ support in the case that the build type is one of those two.

Restructure the file layout to place the custom modules into the cmake/modules directory that is the common layout for CMake based projects.

While a generally unimportant optimization, it makes it much more clear what is being checked and why and does reduce the configure time by ~10% (.25s) on Windows.

Only the C language is used unless we are building the ASAN or UBSAN
build variants. Only check for the C language support, enabling C++
support in the case that the build type is one of those two.

Restructure the file layout to place the custom modules into the
`cmake/modules` directory that is the common layout for CMake based
projects.

While a generally unimportant optimization, it makes it much more clear
what is being checked and why and does reduce the configure time by ~10%
(.25s) on Windows.
@jgm jgm merged commit c7b2877 into commonmark:master Jan 6, 2024
12 checks passed
@compnerd compnerd deleted the languages branch January 6, 2024 19:01
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.

2 participants