aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-31 19:06:35 +0000
committerRobin Krahl <robin.krahl@ireas.org>2018-12-31 20:17:59 +0100
commitb529221df29450412b01d8514df93a059fec8104 (patch)
tree89e8d2d16d7e71fef5449d8bd06767658cc4a14c
parent56abf0719b895c57b068b5859e719cc87dfda386 (diff)
downloadnitrokey-sys-rs-b529221df29450412b01d8514df93a059fec8104.tar.gz
nitrokey-sys-rs-b529221df29450412b01d8514df93a059fec8104.tar.bz2
Use -std=c++14 flag when compiling libnitrokey
Based on the patch proposed by Philippe Normand at [0]. [0] https://github.com/d-e-s-o/nitrocli/pull/42
-rw-r--r--CHANGELOG.md3
-rw-r--r--build.rs1
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 00f832b..492afa0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+# Unreleased
+- Use the -std=c++14 compiler flag.
+
# v3.4.1 (2018-12-10)
- Update to libnitrokey 3.4.1. There are no changes affecting this crate.
diff --git a/build.rs b/build.rs
index a22bbd0..38950d3 100644
--- a/build.rs
+++ b/build.rs
@@ -95,6 +95,7 @@ fn main() {
cc::Build::new()
.cpp(true)
+ .flag("-std=c++14")
.include(library_path.join("libnitrokey"))
.files(sources.iter().map(|s| library_path.join(s)))
.file(version_source)