[clang] [clang][AIX] Strip unknown environment component for per target runtime directory (PR #140850)

Daniel Chen via cfe-commits cfe-commits at lists.llvm.org
Fri May 23 06:22:56 PDT 2025


================
@@ -16,6 +16,11 @@
 // RUN:        -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir\
 // RUN:      | FileCheck --check-prefix=PRINT-RUNTIME-DIR64-PER-TARGET %s
 
+// RUN: %clang -print-runtime-dir --target=powerpc-ibm-aix-unknown \
+// RUN:        -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir\
+// RUN:      | FileCheck --check-prefix=PRINT-RUNTIME-DIR-UNKNOWN-ENV %s
+
 // PRINT-RUNTIME-DIR: lib{{/|\\}}aix{{$}}
 // PRINT-RUNTIME-DIR32-PER-TARGET: lib{{/|\\}}powerpc-ibm-aix{{$}}
 // PRINT-RUNTIME-DIR64-PER-TARGET: lib{{/|\\}}powerpc64-ibm-aix{{$}}
+// PRINT-RUNTIME-DIR-UNKNOWN-ENV: lib{{/|\\}}powerpc-ibm-aix
----------------
DanielCChen wrote:

Nit: to be consistent, can we add a 64-bit check for UNKNOWN as well?

https://github.com/llvm/llvm-project/pull/140850


More information about the cfe-commits mailing list