Merge pull request #171731 from lovesegfault/igm-fixup
intel-graphics-compiler: follow-ups
This commit is contained in:
commit
764bba5aae
2 changed files with 14 additions and 21 deletions
|
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
|
|||
# https://github.com/intel/intel-graphics-compiler/issues/98
|
||||
doCheck = false;
|
||||
|
||||
patchPhase = ''
|
||||
postPatch = ''
|
||||
substituteInPlace ./external/SPIRV-Tools/CMakeLists.txt \
|
||||
--replace '$'''{SPIRV-Tools_DIR}../../..' \
|
||||
'${spirv-tools}' \
|
||||
|
@ -84,7 +84,6 @@ stdenv.mkDerivation rec {
|
|||
"-Wno-dev"
|
||||
"-DVC_INTRINSICS_SRC=${vc_intrinsics_src}"
|
||||
"-DIGC_OPTION__SPIRV_TOOLS_MODE=Prebuilds"
|
||||
"-DINSTALL_SPIRVDLL=0"
|
||||
"-DCCLANG_BUILD_PREBUILDS=ON"
|
||||
"-DCCLANG_BUILD_PREBUILDS_DIR=${prebuilds}"
|
||||
"-DIGC_PREFERRED_LLVM_VERSION=${getVersion llvm}"
|
||||
|
|
|
@ -19,9 +19,9 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-/vUyL6Wh8hykoGz1QmT1F7lfGDEmG4U3iqmqrJxizOg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config cmake llvm_11.dev ];
|
||||
nativeBuildInputs = [ pkg-config cmake llvm_11.dev spirv-tools ];
|
||||
|
||||
buildInputs = [ spirv-headers spirv-tools llvm_11 ];
|
||||
buildInputs = [ spirv-headers llvm_11 ];
|
||||
|
||||
checkInputs = [ lit ];
|
||||
|
||||
|
@ -34,12 +34,6 @@ stdenv.mkDerivation rec {
|
|||
"-DLLVM_SPIRV_BUILD_EXTERNAL=YES"
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace ./test/CMakeLists.txt \
|
||||
--replace 'SPIRV-Tools' 'SPIRV-Tools-shared'
|
||||
'';
|
||||
|
||||
|
||||
# FIXME: CMake tries to run "/llvm-lit" which of course doesn't exist
|
||||
doCheck = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue