On AIX, libraries are still being linked when -r is passed to the driver. This patch corrects this error.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
testcase?
clang/lib/Driver/ToolChains/AIX.cpp | ||
---|---|---|
236 | nit: can we avoid the code duplication here? We can use a goto or add options::OPT_r checking below. |
This patch is still WIP while I verify the libraries that we intend not to add. But I will add a test case once I've done so :)
LGTM. Would be nice to get @daltenty 's approval too.
clang/test/Driver/aix-ld.c | ||
---|---|---|
1094 | is there a way to check that -l<anything> is not present? |
LGTM, with a small nit about the test that should be addressed before committing
clang/test/Driver/aix-ld.c | ||
---|---|---|
1085 | nit: add the user -L option to the test to reflect the changes above |
nit: can we avoid the code duplication here? We can use a goto or add options::OPT_r checking below.
./lib/Driver/ToolChains/Gnu.cpp can be used as a reference.