[PATCH] D153907: [AIX] [TOC] Add -mtocdata/-mno-tocdata options on AIX
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 12 13:16:24 PDT 2023
MaskRay added a comment.
In D153907#4494518 <https://reviews.llvm.org/D153907#4494518>, @alexgatea wrote:
>> %clang and %clang++ are normally only for test/Driver. Use %clang_cc1 for codegen tests.
>
> But %clang_cc1 doesn't compile c++ and one of the codegen tests involves vectors. What do you suggest for that?
On most targets (I am not familiar with AIX), `clang -c a.cc` is identical to `clang++ -c a.cc`. `clang++` just additionally links libstdc++/libc++ for the link action.
You can use `-###` to dump cc1 options and find the useful one for your `%clang_cc1` command.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153907/new/
https://reviews.llvm.org/D153907
More information about the llvm-commits
mailing list