llvm4: enable tests
This commit is contained in:
parent
7a08a44b52
commit
3bc5a68a63
|
@ -56,6 +56,13 @@ in stdenv.mkDerivation rec {
|
|||
+ stdenv.lib.optionalString (enableSharedLibraries) ''
|
||||
substitute '${./llvm-outputs.patch}' ./llvm-outputs.patch --subst-var lib
|
||||
patch -p1 < ./llvm-outputs.patch
|
||||
''
|
||||
# Remove broken tests: (https://bugs.llvm.org//show_bug.cgi?id=31610)
|
||||
+ ''
|
||||
rm test/CodeGen/AMDGPU/invalid-opencl-version-metadata1.ll
|
||||
rm test/CodeGen/AMDGPU/invalid-opencl-version-metadata2.ll
|
||||
rm test/CodeGen/AMDGPU/invalid-opencl-version-metadata3.ll
|
||||
rm test/CodeGen/AMDGPU/runtime-metadata.ll
|
||||
'';
|
||||
|
||||
# hacky fix: created binaries need to be run before installation
|
||||
|
@ -85,6 +92,14 @@ in stdenv.mkDerivation rec {
|
|||
rm -fR $out
|
||||
|
||||
paxmark m bin/{lli,llvm-rtdyld}
|
||||
paxmark m unittests/ExecutionEngine/MCJIT/MCJITTests
|
||||
paxmark m unittests/ExecutionEngine/Orc/OrcJITTests
|
||||
paxmark m unittests/Support/SupportTests
|
||||
paxmark m bin/lli-child-target
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
||||
'';
|
||||
|
||||
postInstall = ""
|
||||
|
@ -103,6 +118,10 @@ in stdenv.mkDerivation rec {
|
|||
ln -s $lib/lib/libLLVM.dylib $lib/lib/libLLVM-${release_version}.dylib
|
||||
'';
|
||||
|
||||
doCheck = stdenv.isLinux;
|
||||
|
||||
checkTarget = "check-all";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.src = src;
|
||||
|
|
Loading…
Reference in a new issue