Skip to content

Commit 1b78104

Browse files
Merge pull request #13 from gembleman/main
chore: update C++ standard to C++14 in build configuration
2 parents 03dd328 + da322fe commit 1b78104

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightgbm3-sys/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn main() {
4747
let mut cfg = Config::new(&lgbm_root);
4848
let cfg = cfg
4949
.profile("Release")
50-
.cxxflag("-std=c++11")
50+
.cxxflag("-std=c++14")
5151
.define("BUILD_STATIC_LIB", "ON");
5252
#[cfg(not(feature = "openmp"))]
5353
let cfg = cfg.define("USE_OPENMP", "OFF");
@@ -58,7 +58,7 @@ fn main() {
5858
let dst = cfg.build();
5959

6060
// bindgen build
61-
let mut clang_args = vec!["-x", "c++", "-std=c++11"];
61+
let mut clang_args = vec!["-x", "c++", "-std=c++14"];
6262
if target.contains("apple") {
6363
clang_args.push("-mmacosx-version-min=10.12");
6464
}

lightgbm3-sys/lightgbm

Submodule lightgbm updated 92 files

0 commit comments

Comments
 (0)