File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -622,13 +622,16 @@ def __init__(self):
622622 self .cmake_defines ['LLVM_BUILD_RUNTIME' ] = 'OFF'
623623
624624 def configure (self ):
625+ no_multicall = not self .multicall_is_enabled ()
625626 # The following defines are needed to avoid thousands of warnings
626627 # along the lines of:
627628 # "Unable to track new values: Running out of static counters."
628- # They require LLVM_LINK_DYLIB to be enabled, which is done above.
629+ # LLVM_VP_COUNTERS_PER_SITE requires LLVM_LINK_DYLIB, which is only
630+ # done when multicall is not enabled. If multicall is enabled, we need
631+ # to use CMAKE_C{,XX}_FLAGS.
629632 cmake_options = Path (self .folders .source , 'llvm/cmake/modules/HandleLLVMOptions.cmake' )
630633 cmake_text = cmake_options .read_text (encoding = 'utf-8' )
631- if 'LLVM_VP_COUNTERS_PER_SITE' in cmake_text :
634+ if no_multicall and 'LLVM_VP_COUNTERS_PER_SITE' in cmake_text :
632635 self .cmake_defines ['LLVM_VP_COUNTERS_PER_SITE' ] = '6'
633636 else :
634637 cflags = []
@@ -655,7 +658,7 @@ def configure(self):
655658 # https://github.com/llvm/llvm-project/pull/133596
656659 # But that should not matter much in this case because multicall uses
657660 # much less disk space.
658- if not self . multicall_is_enabled () :
661+ if no_multicall :
659662 self .cmake_defines ['LLVM_LINK_LLVM_DYLIB' ] = 'ON'
660663
661664 super ().configure ()
You can’t perform that action at this time.
0 commit comments