Skip to content

Conversation

jayvdb
Copy link
Contributor

@jayvdb jayvdb commented Jul 26, 2021

Allows reducing build time by ~1/3

build.rs Outdated
if !cfg!(feature = "testcpp") {
cmake.define("libswiftnav_ENABLE_TESTS", "OFF");
}

cmake
.profile("Release")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a reason we are always using Release profile? If removed, the cmake-rs crate will dynamically set this based on the Rust release profile.

Copy link
Contributor

Choose a reason for hiding this comment

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

No specific reason as far as I remember, I think we can remove this if the cmake crate selects this automatically

jayvdb added 2 commits July 26, 2021 20:27
Avoids these two parts of the cmake rules from performing
searches for binaries which will not be used.
@jayvdb jayvdb force-pushed the jayvdb/disable-tests branch from c53c704 to 7338016 Compare July 26, 2021 12:43
cmake-rs automatically determines the appropriate
CMAKE_BUILD_TYPE based on the Rust build profile and
env vars OPT_LEVEL and DEBUG.
@jayvdb jayvdb merged commit 6a31b76 into swift-nav:master Jul 27, 2021
@jbangelo
Copy link
Collaborator

Looks good. Thanks for fixing this up @jayvdb !

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.

3 participants