1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
{
"name": "LlvmAT4",
"description": "Next-gen compiler infrastructure",
"url": "https://releases.llvm.org/4.0.1/llvm-4.0.1.src.tar.xz",
"mirror": null,
"homepage": "https://llvm.org/",
"depends": [
{
"depend": "cmake",
"build-depend": true
},
{
"depend": "libffi",
"build-depend": false
}
],
"resource": [
{
"name": "clang",
"url": "https://releases.llvm.org/4.0.1/cfe-4.0.1.src.tar.xz"
},
{
"name": "clang-extra-tools",
"url": "https://releases.llvm.org/4.0.1/clang-tools-extra-4.0.1.src.tar.xz"
},
{
"name": "compiler-rt",
"url": "https://releases.llvm.org/4.0.1/compiler-rt-4.0.1.src.tar.xz"
},
{
"name": "libcxx",
"url": "https://releases.llvm.org/4.0.1/libcxx-4.0.1.src.tar.xz"
},
{
"name": "libunwind",
"url": "https://releases.llvm.org/4.0.1/libunwind-4.0.1.src.tar.xz"
},
{
"name": "lld",
"url": "https://releases.llvm.org/4.0.1/lld-4.0.1.src.tar.xz"
},
{
"name": "lldb",
"url": "https://releases.llvm.org/4.0.1/lldb-4.0.1.src.tar.xz"
},
{
"name": "openmp",
"url": "https://releases.llvm.org/4.0.1/openmp-4.0.1.src.tar.xz"
},
{
"name": "polly",
"url": "https://releases.llvm.org/4.0.1/polly-4.0.1.src.tar.xz"
}
],
"conflicts": [],
"patches": [],
"install": [
"ENV.libcxx if ENV.compiler == :clang",
"(buildpath/\"tools/clang\").install resource(\"clang\")",
"(buildpath/\"tools/clang/tools/extra\").install resource(\"clang-extra-tools\")",
"(buildpath/\"projects/openmp\").install resource(\"openmp\")",
"(buildpath/\"projects/libcxx\").install resource(\"libcxx\")",
"(buildpath/\"projects/libunwind\").install resource(\"libunwind\")",
"(buildpath/\"tools/lld\").install resource(\"lld\")",
"(buildpath/\"tools/polly\").install resource(\"polly\")",
"(buildpath/\"projects/compiler-rt\").install resource(\"compiler-rt\")",
"ENV.permit_arch_flags",
"args = %W[",
"-DLIBOMP_ARCH=x86_64",
"-DLINK_POLLY_INTO_TOOLS=ON",
"-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON",
"-DLLVM_BUILD_LLVM_DYLIB=ON",
"-DLLVM_ENABLE_EH=ON",
"-DLLVM_ENABLE_FFI=ON",
"-DLLVM_ENABLE_LIBCXX=ON",
"-DLLVM_ENABLE_RTTI=ON",
"-DLLVM_INCLUDE_DOCS=OFF",
"-DLLVM_INSTALL_UTILS=ON",
"-DLLVM_OPTIMIZED_TABLEGEN=ON",
"-DLLVM_TARGETS_TO_BUILD=all",
"-DWITH_POLLY=ON",
"-DFFI_INCLUDE_DIR=#{Formula[\"libffi\"].opt_lib}/libffi-#{Formula[\"libffi\"].version}/include",
"-DFFI_LIBRARY_DIR=#{Formula[\"libffi\"].opt_lib}",
"-DLLVM_CREATE_XCODE_TOOLCHAIN=ON",
"]",
"mkdir \"build\" do",
"system \"cmake\", \"-G\", \"Unix Makefiles\", \"..\", *(std_cmake_args + args)",
"system \"make\"",
"system \"make\", \"install\"",
"system \"make\", \"install-xcode-toolchain\""
],
"version": "4.0.1",
"file": "llvm@4.rb"
}
|