about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Tenty <daltenty@ibm.com>2024-11-29 16:40:13 -0500
committerDavid Tenty <daltenty@ibm.com>2024-11-29 16:40:13 -0500
commita9cb2d67092a088944eb46d88fc925071f6c65de (patch)
tree1e0b71cb3cf4ff01434b5fffcf00b03a83b53f03
parent2ade671b4fed8100c732a3ab947787dbba60e6ed (diff)
downloadrust-a9cb2d67092a088944eb46d88fc925071f6c65de.tar.gz
rust-a9cb2d67092a088944eb46d88fc925071f6c65de.zip
Add a comment
-rw-r--r--compiler/rustc_metadata/src/native_libs.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_metadata/src/native_libs.rs b/compiler/rustc_metadata/src/native_libs.rs
index fa1e274fda9..1d85aef9dff 100644
--- a/compiler/rustc_metadata/src/native_libs.rs
+++ b/compiler/rustc_metadata/src/native_libs.rs
@@ -54,6 +54,9 @@ pub fn walk_native_lib_search_dirs<R>(
     // The targets here should be in sync with `copy_third_party_objects` in bootstrap.
     // FIXME: implement `-Clink-self-contained=+/-unwind,+/-sanitizers`, move the shipped libunwind
     // and sanitizers to self-contained directory, and stop adding this search path.
+    // FIXME: On AIX this also has the side-effect of making the list of library search paths
+    // non-empty, which is needed or the linker may decide to record the LIBPATH env, if
+    // defined, as the search path instead of appending the default search paths.
     if sess.target.vendor == "fortanix"
         || sess.target.os == "linux"
         || sess.target.os == "fuchsia"