Skip to content

Commit d8f979d

Browse files
committed
chore: fix build
1 parent b1c65c5 commit d8f979d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ fn main() {
1414
datasketches.join("hh.cpp"),
1515
])
1616
.include(datasketches.join("common").join("include"))
17-
.flag_if_supported("-std=c++11")
1817
.cpp_link_stdlib(None)
19-
.static_flag(true)
20-
.compile("libdatasketches.a");
18+
.static_flag(true);
19+
20+
// MSVC doesn't plan to implement C++11 switch, because they use c++14 by default
21+
#[cfg(not(target_env = "msvc"))]
22+
bridge.flag_if_supported("-std=c++11");
23+
24+
bridge.compile("libdatasketches.a");
2125
}

0 commit comments

Comments
 (0)