Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed May 12, 2024
1 parent b1c65c5 commit d8f979d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ fn main() {
datasketches.join("hh.cpp"),
])
.include(datasketches.join("common").join("include"))
.flag_if_supported("-std=c++11")
.cpp_link_stdlib(None)
.static_flag(true)
.compile("libdatasketches.a");
.static_flag(true);

// MSVC doesn't plan to implement C++11 switch, because they use c++14 by default
#[cfg(not(target_env = "msvc"))]
bridge.flag_if_supported("-std=c++11");

bridge.compile("libdatasketches.a");
}

0 comments on commit d8f979d

Please sign in to comment.