[compiler-rt] [compiler-rt][test] Remove noisy warnings (PR #191510)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 13:50:26 PDT 2026
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/191510
>From 6bec71ca04aa552350aded9c8df4a103bae2e841 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Fri, 10 Apr 2026 13:08:40 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20change?=
=?UTF-8?q?s=20to=20main=20this=20commit=20is=20based=20on?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
[skip ci]
---
compiler-rt/test/lit.common.cfg.py | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py
index 00c89f222f378..fef8f7ab297cc 100644
--- a/compiler-rt/test/lit.common.cfg.py
+++ b/compiler-rt/test/lit.common.cfg.py
@@ -206,7 +206,10 @@ def push_dynamic_library_lookup_path(config, new_path):
test_cc_resource_dir = os.path.realpath(test_cc_resource_dir)
lit_config.dbg(f"Resource dir for {config.clang} is {test_cc_resource_dir}")
local_build_resource_dir = os.path.realpath(config.compiler_rt_output_dir)
-if test_cc_resource_dir != local_build_resource_dir and config.test_standalone_build_libs:
+if (
+ test_cc_resource_dir != local_build_resource_dir
+ and config.test_standalone_build_libs
+):
if config.compiler_id == "Clang":
lit_config.dbg(
f"Overriding test compiler resource dir to use "
@@ -363,6 +366,7 @@ def push_dynamic_library_lookup_path(config, new_path):
else:
config.substitutions.append(("%run_nomprotect", "%run"))
+
# Copied from libcxx's config.py
def get_lit_conf(name, default=None):
# Allow overriding on the command line using --param=<name>=<val>
@@ -1080,14 +1084,17 @@ def target_page_size():
config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1"
if config.has_compiler_rt_libatomic:
- base_lib = os.path.join(config.compiler_rt_libdir, "libclang_rt.atomic%s.so"
- % config.target_suffix)
- if sys.platform in ['win32'] and execute_external:
- # Don't pass dosish path separator to msys bash.exe.
- base_lib = base_lib.replace('\\', '/')
- config.substitutions.append(("%libatomic", base_lib + f" -Wl,-rpath,{config.compiler_rt_libdir}"))
+ base_lib = os.path.join(
+ config.compiler_rt_libdir, "libclang_rt.atomic%s.so" % config.target_suffix
+ )
+ if sys.platform in ["win32"] and execute_external:
+ # Don't pass dosish path separator to msys bash.exe.
+ base_lib = base_lib.replace("\\", "/")
+ config.substitutions.append(
+ ("%libatomic", base_lib + f" -Wl,-rpath,{config.compiler_rt_libdir}")
+ )
else:
- config.substitutions.append(("%libatomic", "-latomic"))
+ config.substitutions.append(("%libatomic", "-latomic"))
# Set LD_LIBRARY_PATH to pick dynamic runtime up properly.
push_dynamic_library_lookup_path(config, config.compiler_rt_libdir)
More information about the llvm-commits
mailing list