From b529221df29450412b01d8514df93a059fec8104 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 31 Dec 2018 19:06:35 +0000 Subject: 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 --- CHANGELOG.md | 3 +++ build.rs | 1 + 2 files changed, 4 insertions(+) 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) -- cgit v1.2.3