Skip to content

Builds on Nix fail due to os_info::get().version() #3

@alexandru0-dev

Description

@alexandru0-dev

As the title says builds on nix fail due to build.rs using conditional includes.
When building with Nix, os_info::get().version() returns Unknown which is cannot be deserialized to Sematic resulting in missing includes and build failues.
Original comment

Possible solution:

Using feature flags would be ideal and using the current method (dynamic builds) as a fallback.


Also sidenote:
Shouldn't those lines contain c_src only 1 time?

driverkit/build.rs

Lines 31 to 32 in 1b552cc

println!("cargo:rerun-if-changed=c_src/c_src/driverkit.hpp");
println!("cargo:rerun-if-changed=c_src/c_src/driverkit.cpp");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions