mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
Merge pull request #133191 from Stunkymonkey/intel-graphics-compiler-phases
intel-graphics-compiler: deprecate phases and replace it with runComm…
This commit is contained in:
commit
6ef4f522d6
@ -1,8 +1,8 @@
|
||||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
|
||||
, runCommandLocal
|
||||
, bison
|
||||
, flex
|
||||
, llvmPackages_8
|
||||
@ -46,18 +46,14 @@ stdenv.mkDerivation rec {
|
||||
doCheck = false;
|
||||
|
||||
# Handholding the braindead build script
|
||||
# We put this in a derivation because the cmake requires an absolute path
|
||||
prebuilds = stdenv.mkDerivation {
|
||||
name = "igc-cclang-prebuilds";
|
||||
phases = [ "installPhase" ];
|
||||
installPhase = ''
|
||||
# cmake requires an absolute path
|
||||
prebuilds = runCommandLocal "igc-cclang-prebuilds" { } ''
|
||||
mkdir $out
|
||||
ln -s ${clang}/bin/clang $out/
|
||||
ln -s clang $out/clang-${versions.major (getVersion clang)}
|
||||
ln -s ${opencl-clang}/lib/* $out/
|
||||
ln -s ${lib.getLib libclang}/lib/clang/${getVersion clang}/include/opencl-c.h $out/
|
||||
'';
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCCLANG_BUILD_PREBUILDS=ON"
|
||||
|
Loading…
Reference in New Issue
Block a user