File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 12
12
from tc_build .builder import Builder
13
13
import tc_build .utils
14
14
15
+ LLVM_VER_FOR_RUNTIMES = 20
16
+
15
17
16
18
def get_all_targets (llvm_folder ):
17
19
contents = Path (llvm_folder , 'llvm/CMakeLists.txt' ).read_text (encoding = 'utf-8' )
@@ -251,7 +253,8 @@ def configure(self):
251
253
252
254
# https://github.com/llvm/llvm-project/commit/b593110d89aea76b8b10152b24ece154bff3e4b5
253
255
llvm_enable_projects = self .projects .copy ()
254
- if self .llvm_major_version >= 21 and self .project_is_enabled ('compiler-rt' ):
256
+ if self .llvm_major_version >= LLVM_VER_FOR_RUNTIMES and self .project_is_enabled (
257
+ 'compiler-rt' ):
255
258
llvm_enable_projects .remove ('compiler-rt' )
256
259
self .cmake_defines ['LLVM_ENABLE_RUNTIMES' ] = 'compiler-rt'
257
260
self .cmake_defines ['LLVM_ENABLE_PROJECTS' ] = ';' .join (llvm_enable_projects )
@@ -433,7 +436,7 @@ def configure(self):
433
436
distribution_components .append ('lld' )
434
437
if build_compiler_rt :
435
438
distribution_components .append ('llvm-profdata' )
436
- if self .llvm_major_version >= 21 :
439
+ if self .llvm_major_version >= LLVM_VER_FOR_RUNTIMES :
437
440
distribution_components .append ('runtimes' )
438
441
runtime_distribution_components .append ('profile' )
439
442
else :
You can’t perform that action at this time.
0 commit comments