[all-commits] [llvm/llvm-project] 0ba984: [AIX] Emit error for -G option on AIX
xiangling-liao via All-commits
all-commits at lists.llvm.org
Thu Oct 22 13:21:40 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0ba98433971f6aa7cf4dc2befe7b5446d25d5956
https://github.com/llvm/llvm-project/commit/0ba98433971f6aa7cf4dc2befe7b5446d25d5956
Author: Xiangling Liao <Xiangling.Liao at ibm.com>
Date: 2020-10-22 (Thu, 22 Oct 2020)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
A clang/test/Driver/aix-err-options.c
M llvm/CMakeLists.txt
Log Message:
-----------
[AIX] Emit error for -G option on AIX
1. Emit error for -G driver option on AIX
2. Adjust cmake file to use -Wl,-G instead of -G
On AIX, legacy XL compiler uses -G to produce a shared object enabled
for use with the run-time linker, which has different meanings from what
it is used for in Clang. And in Clang, other targets do not have -G map
to another functionality in their legacy compiler. So this error is more
important when we are on AIX.
Differential Revision: https://reviews.llvm.org/D89897
More information about the All-commits
mailing list