Merge pull request #61019 from volth/gcc.arch-amd

platform.gcc.arch: support for AMD CPUs
This commit is contained in:
John Ericson
2020-09-01 22:31:16 -04:00
committed by GitHub
18 changed files with 168 additions and 95 deletions

View File

@@ -2,7 +2,7 @@
, guiSupport ? false, libX11
# see http://dlib.net/compile.html
, avxSupport ? true
, avxSupport ? stdenv.hostPlatform.avxSupport
, cudaSupport ? true
}:
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
rm -rf dlib/external
'';
cmakeFlags = [
cmakeFlags = [
"-DUSE_DLIB_USE_CUDA=${if cudaSupport then "1" else "0"}"
"-DUSE_AVX_INSTRUCTIONS=${if avxSupport then "yes" else "no"}" ];