-
Notifications
You must be signed in to change notification settings - Fork 133
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
Remove more sdist files #259
Changes from 1 commit
d230846
c9bb628
1ac35eb
1617639
4d8e59d
f9869aa
302cae6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,22 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON) | |
set(CMAKE_BUILD_TYPE Release) | ||
|
||
# Avoid building tooling we won't need for release | ||
# See all options with `cmake -LA` in an `h3/build` directory | ||
set(BUILD_ALLOC_TESTS OFF CACHE BOOL "" FORCE) | ||
set(BUILD_BENCHMARKS OFF CACHE BOOL "" FORCE) | ||
set(BUILD_FILTERS OFF CACHE BOOL "" FORCE) | ||
set(BUILD_FUZZERS OFF CACHE BOOL "" FORCE) | ||
set(BUILD_GENERATORS OFF CACHE BOOL "" FORCE) | ||
set(BUILD_TESTING OFF CACHE BOOL "" FORCE) | ||
set(ENABLE_COVERAGE OFF CACHE BOOL "" FORCE) | ||
set(ENABLE_DOCS OFF CACHE BOOL "" FORCE) | ||
set(ENABLE_FORMAT OFF CACHE BOOL "" FORCE) | ||
set(ENABLE_LIBFUZZER OFF CACHE BOOL "" FORCE) | ||
set(ENABLE_LINTING OFF CACHE BOOL "" FORCE) | ||
# See all options with `cmake -LA` in an `h3/build` directory, | ||
# or at https://h3geo.org/docs/next/core-library/compilation-options/ | ||
macro(turn_off option_name) | ||
set(${option_name} OFF CACHE BOOL "" FORCE) | ||
endmacro() | ||
turn_off(BUILD_ALLOC_TESTS) | ||
turn_off(BUILD_BENCHMARKS) | ||
turn_off(BUILD_FILTERS) | ||
turn_off(BUILD_FUZZERS) | ||
turn_off(BUILD_GENERATORS) | ||
turn_off(BUILD_TESTING) | ||
turn_off(ENABLE_COVERAGE) | ||
turn_off(ENABLE_DOCS) | ||
turn_off(ENABLE_FORMAT) | ||
turn_off(ENABLE_LIBFUZZER) | ||
turn_off(ENABLE_LINTING) | ||
Comment on lines
+10
to
+25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious, can you compare compilation times before and after this change? Does this make it a lot faster? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I spot checked some other compilation times. There's maybe a gain. I'll try some runs here for a clearer comparison. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
# Build the core library as static | ||
set(BUILD_SHARED_LIBS OFF) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUILD_ALLOC_TESTS should not have any effect when BUILD_TESTING is off. Harmless to disable it though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a suspicion that that was true, but yeah, figured it couldn't hurt to just disable everything to make sure.