Skip to content

Commit 60b1ea6

Browse files
committed
To address review comments and added a test.
1 parent 64e5b60 commit 60b1ea6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ void tools::addArchSpecificRPath(const ToolChain &TC, const ArgList &Args,
12521252
options::OPT_fno_rtlib_add_rpath, false))
12531253
return;
12541254

1255-
if (TC.getTriple().isOSAIX()) // AIX doesn't support -rpath option.
1255+
if (TC.getTriple().isOSAIX()) // TODO: AIX doesn't support -rpath option.
12561256
return;
12571257

12581258
SmallVector<std::string> CandidateRPaths(TC.getArchSpecificLibPaths());

flang/test/Driver/flang-ld-powerpc.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
! AIX64-LD-PER-TARGET-DEFAULT-SAME: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}powerpc64-ibm-aix{{/|\\\\}}libflang_rt.runtime.a"
2424
! AIX64-LD-PER-TARGET-DEFAULT-SAME: "-lm"
2525
! AIX64-LD-PER-TARGET-DEFAULT-SAME: "-lpthread"
26+
! AIX64-LD-PER-TARGET-DEFAULT-NOT: "-L/[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}powerpc64-ibm-aix"
2627

2728

2829
! Check powerpc64-ibm-aix 64-bit linking to static flang-rt by option

0 commit comments

Comments
 (0)