[lld] [lld-macho]Define a macro to allow specifying the slop size at build time. (PR #164295)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Oct 20 11:38:25 PDT 2025
    
    
  
================
@@ -1,3 +1,8 @@
+
+option(LLD_MACHO_SLOP_FACTOR
+    "Specify the slop factor. For very large build, the default of 256 might be too small, which can cause thunk-range overrun. Recommend increasing this value to 1024 or higher as needed.", 256)
----------------
dmaclach wrote:
Is there any better documentation we can provide as to what this actually is/does? For example do we know what is causing a thunk-range overrun? Is there some coding patterns that may cause it? This seems like we are just putting a band-aid on what may be a bad coding practice.
Also
"For very large builds" vs "For very large build".
is this something that should maybe be specified as a build flag vs a macro?
https://github.com/llvm/llvm-project/pull/164295
    
    
More information about the llvm-commits
mailing list