mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[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
This commit is contained in:
parent
077958bf5e
commit
33c020bc1a
@ -930,7 +930,7 @@ if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
|
||||
|
||||
# Modules should be built with -G, so we can use runtime linking with
|
||||
# plugins.
|
||||
string(APPEND CMAKE_MODULE_LINKER_FLAGS " -G")
|
||||
string(APPEND CMAKE_MODULE_LINKER_FLAGS " -Wl,-G")
|
||||
|
||||
# Also set the correct flags for building shared libraries.
|
||||
string(APPEND CMAKE_SHARED_LINKER_FLAGS " -shared")
|
||||
|
Loading…
x
Reference in New Issue
Block a user