File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -843,8 +843,8 @@ std::optional<std::string> ToolChain::getRuntimePath() const {
843
843
llvm::sys::path::append (P, " lib" );
844
844
if (auto Ret = getTargetSubDirPath (P))
845
845
return Ret;
846
- // Darwin does not use per-target runtime directory.
847
- if (Triple.isOSDarwin ())
846
+ // Darwin and AIX does not use per-target runtime directory.
847
+ if (Triple.isOSDarwin () || Triple. isOSAIX () )
848
848
return {};
849
849
llvm::sys::path::append (P, Triple.str ());
850
850
return std::string (P);
Original file line number Diff line number Diff line change
1
+ // Test output of -print-runtime-dir on AIX
2
+
3
+ // RUN: %clang -print-runtime-dir --target=powerpc-ibm-aix \
4
+ // RUN: -resource-dir=%S/Inputs/resource_dir \
5
+ // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
6
+
7
+ // RUN: %clang -print-runtime-dir --target=powerpc64-ibm-aix \
8
+ // RUN: -resource-dir=%S/Inputs/resource_dir \
9
+ // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
10
+
11
+ // PRINT-RUNTIME-DIR: lib{{/|\\}}aix{{$}}
You can’t perform that action at this time.
0 commit comments