tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
llvm: Add support for grsecurity
Ricardo M. Correia
11 years ago
f9cd53ba
b30f4197
+20
-1
2 changed files
expand all
collapse all
unified
split
pkgs
development
compilers
llvm
3.3
llvm.nix
3.4
llvm.nix
+9
pkgs/development/compilers/llvm/3.3/llvm.nix
···
22
22
23
23
cmakeFlags = with stdenv; [
24
24
"-DCMAKE_BUILD_TYPE=Release"
25
25
+
"-DLLVM_BUILD_TESTS=ON"
25
26
"-DLLVM_ENABLE_FFI=ON"
26
27
"-DLLVM_BINUTILS_INCDIR=${binutils}/include"
27
28
"-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=R600" # for mesa
28
29
] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON";
30
30
+
31
31
+
postBuild = ''
32
32
+
paxmark m bin/{lli,llvm-rtdyld}
33
33
+
34
34
+
paxmark m unittests/ExecutionEngine/JIT/JITTests
35
35
+
paxmark m unittests/ExecutionEngine/MCJIT/MCJITTests
36
36
+
paxmark m unittests/Support/SupportTests
37
37
+
'';
29
38
30
39
enableParallelBuilding = true;
31
40
+11
-1
pkgs/development/compilers/llvm/3.4/llvm.nix
···
35
35
mkdir -p $out/
36
36
ln -sv $PWD/lib $out
37
37
'';
38
38
-
postBuild = "rm -fR $out";
39
38
40
39
cmakeFlags = with stdenv; [
41
40
"-DCMAKE_BUILD_TYPE=Release"
41
41
+
"-DLLVM_BUILD_TESTS=ON"
42
42
"-DLLVM_ENABLE_FFI=ON"
43
43
"-DLLVM_BINUTILS_INCDIR=${binutils}/include"
44
44
"-DCMAKE_CXX_FLAGS=-std=c++11"
45
45
] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON";
46
46
+
47
47
+
postBuild = ''
48
48
+
rm -fR $out
49
49
+
50
50
+
paxmark m bin/{lli,llvm-rtdyld}
51
51
+
52
52
+
paxmark m unittests/ExecutionEngine/JIT/JITTests
53
53
+
paxmark m unittests/ExecutionEngine/MCJIT/MCJITTests
54
54
+
paxmark m unittests/Support/SupportTests
55
55
+
'';
46
56
47
57
enableParallelBuilding = true;
48
58