Unverified Commit 7e1679f3 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #298447 from reckenrode/ncnn-darwin

ncnn: fix build on Darwin
parents 9a45e48d 0697a4a5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -33,7 +33,9 @@ stdenv.mkDerivation rec {
    "-DNCNN_BUILD_TOOLS=0"
    "-DNCNN_SYSTEM_GLSLANG=1"
    "-DNCNN_PYTHON=0" # Should be an attribute
  ];
  ]
  # Requires setting `Vulkan_LIBRARY` on Darwin. Otherwise the build fails due to missing symbols.
  ++ lib.optionals stdenv.isDarwin [ "-DVulkan_LIBRARY=-lvulkan" ];

  nativeBuildInputs = [ cmake ];
  buildInputs = [ vulkan-headers vulkan-loader glslang opencv protobuf ];