[compiler-rt] [Compiler-rt][test] Fix circular link dependency between builtins and libc (PR #199482)
Simon Tatham via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 01:01:42 PDT 2026
================
@@ -107,7 +107,9 @@ def get_libgcc_file_name():
if config.target_os == "Haiku":
config.substitutions.append(("%librt ", base_lib + " -lroot "))
else:
- config.substitutions.append(("%librt ", base_lib + " -lc -lm "))
+ config.substitutions.append(
+ ("%librt ", "-Wl,--start-group " + base_lib + " -lc -Wl,--end-group -lm ")
----------------
statham-arm wrote:
D'oh. I wrote the same thing yesterday, but apparently forgot to press "submit review"!
https://github.com/llvm/llvm-project/pull/199482
More information about the llvm-commits
mailing list