[PATCH] D88500: [AIX][Clang][Driver] Link libm in c++ mode
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 29 15:32:31 PDT 2020
hubert.reinterpretcast accepted this revision.
hubert.reinterpretcast added a comment.
This revision is now accepted and ready to land.
LGTM with minor comments.
================
Comment at: clang/test/Driver/aix-ld.c:406
// CHECK-LD32-NOSTDLIBXX-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
+// CHECK-LD32-NOSTDLIBXX-LCXX-: "-lm"
// CHECK-LD32-NOSTDLIBXX-LCXX: "-lc"
----------------
Typo.
================
Comment at: clang/test/Driver/aix-ld.c:446
// CHECK-LD32-NOSTARTFILES-LCXX: "-L[[SYSROOT]]/usr/lib"
-// CHECK-LD32-NOSTARTFILES-LCXX "-lc++"
+// CHECK-LD32-NOSTARTFILES-LCXX: "-lc++"
// CHECK-LD32-NOSTARTFILES-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
----------------
Formatting.
================
Comment at: clang/test/Driver/aix-ld.c:448
// CHECK-LD32-NOSTARTFILES-LCXX: "[[RESOURCE_DIR]]{{/|\\\\}}lib{{/|\\\\}}aix{{/|\\\\}}libclang_rt.builtins-powerpc.a"
+// CHECK-LD32-NOSTARTFILES-LCXX: "-lm"
// CHECK-LD32-NOSTARTFILES-LCXX: "-lc"
----------------
Same comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88500/new/
https://reviews.llvm.org/D88500
More information about the cfe-commits
mailing list