-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathorg.freedesktop.Sdk.Extension.llvm11.json
138 lines (138 loc) · 4.09 KB
/
org.freedesktop.Sdk.Extension.llvm11.json
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"id": "org.freedesktop.Sdk.Extension.llvm11",
"branch": "20.08",
"runtime": "org.freedesktop.Sdk",
"build-extension": true,
"sdk": "org.freedesktop.Sdk",
"runtime-version": "20.08",
"separate-locales": false,
"appstream-compose": false,
"build-options": {
"prefix": "/usr/lib/sdk/llvm11"
},
"modules": [
{
"name": "swig",
"config-opts": [
"--without-alllang",
"--with-python3"
],
"cleanup": ["*"],
"sources": [
{
"type": "archive",
"url": "http://download.sourceforge.net/swig/swig-4.0.1.tar.gz",
"sha256": "7a00b4d0d53ad97a14316135e2d702091cd5f193bb58bcfcd8bc59d41e7887a9"
}
]
},
{
"name": "llvm",
"buildsystem": "cmake-ninja",
"subdir": "llvm",
"builddir": true,
"build-options": {
"arch": {
"aarch64": {
"config-opts": [
"-DFFI_INCLUDE_DIR=/usr/lib/aarch64-linux-gnu/libffi-3.2.1/include",
"-DLLVM_DEFAULT_TARGET_TRIPLE=aarch64-unknown-linux-gnu",
"-DLLVM_TARGETS_TO_BUILD='AArch64'"
]
},
"x86_64": {
"config-opts": [
"-DFFI_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/libffi-3.2.1/include",
"-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu",
"-DLLVM_TARGETS_TO_BUILD='X86;AMDGPU;NVPTX'"
]
}
},
"cflags": "-g0",
"cxxflags": "-g0",
"env": {
"CC": "clang",
"CXX": "clang++"
},
"ldflags": "-fuse-ld=lld"
},
"config-opts": [
"-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;compiler-rt;lld;lldb'",
"-DLLVM_ENABLE_ASSERTIONS:BOOL=OFF",
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DLLVM_BUILD_LLVM_DYLIB:BOOL=ON",
"-DLLVM_LINK_LLVM_DYLIB:BOOL=ON",
"-DCLANG_LINK_CLANG_DYLIB=ON",
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
"-DLLVM_LIBDIR_SUFFIX=''",
"-DLLVM_ENABLE_LIBCXX:BOOL=OFF",
"-DLLVM_ENABLE_ZLIB:BOOL=ON",
"-DLLVM_ENABLE_FFI:BOOL=ON",
"-DLLVM_ENABLE_RTTI:BOOL=ON",
"-DLLVM_INCLUDE_TESTS:BOOL=OFF",
"-DLLVM_INCLUDE_EXAMPLES:BOOL=OFF",
"-DLLVM_INCLUDE_UTILS:BOOL=ON",
"-DLLVM_INSTALL_UTILS:BOOL=ON",
"-DLLVM_INCLUDE_DOCS:BOOL=OFF",
"-DLLVM_ENABLE_DOXYGEN:BOOL=OFF",
"-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON",
"-DLLVM_BINUTILS_INCDIR=/usr/include",
"-DLLVM_INSTALL_TOOLCHAIN_ONLY:BOOL=OFF",
"-DCMAKE_C_FLAGS_RELWITHDEBINFO='-DNDEBUG'",
"-DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-DNDEBUG'"
],
"cleanup": [
"libLLVM*.a"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/llvm-project-11.1.0.src.tar.xz",
"sha256": "74d2529159fd118c3eac6f90107b5611bccc6f647fdea104024183e8d5e25831"
},
{
"type": "patch",
"path": "patches/llvm/llvm-fix-tsan-build.patch"
},
{
"type": "patch",
"path": "patches/llvm/llvm-shared-tablegen.patch"
},
{
"type": "patch",
"path": "patches/llvm/llvm-fix-cmake-warning-standalone-compiler-rt-builds.patch"
}
]
},
{
"name": "scripts",
"buildsystem": "simple",
"build-commands": [
"cp enable.sh /usr/lib/sdk/llvm11/"
],
"sources": [
{
"type": "script",
"commands": [
"export PATH=/usr/lib/sdk/llvm11/bin:$PATH"
],
"dest-filename": "enable.sh"
}
]
},
{
"name": "appdata",
"buildsystem": "simple",
"build-commands": [
"install -Dm0644 -t ${FLATPAK_DEST}/share/metainfo/ ${FLATPAK_ID}.metainfo.xml",
"appstream-compose --basename=${FLATPAK_ID} --prefix=${FLATPAK_DEST} --origin=flatpak ${FLATPAK_ID}"
],
"sources": [
{
"type": "file",
"path": "org.freedesktop.Sdk.Extension.llvm11.metainfo.xml"
}
]
}
]
}