Commit 11056076 authored by Florian Klink's avatar Florian Klink
Browse files

python3Packages.lightgbm: fix cuda build

nvcc needs `-std=c++14` to successfully compile.
parent e73227e2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ buildPythonPackage rec {
    # Set in pyproject.toml for `cmake.args` in `[tool.scikit-build]`,
    # but not set by our hooks.
    (lib.cmakeBool "__BUILD_FOR_PYTHON" true)
  ]
  ++ lib.optionals cudaSupport [
    # build fails otherwise
    (lib.cmakeFeature "CMAKE_CUDA_STANDARD" "14")
  ];

  optional-dependencies = {