mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[AIX] Enable large code model when building with clang
This commit is contained in:
parent
0432f77854
commit
655fbd5c46
@ -195,7 +195,7 @@ endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "AIX")
|
||||
# -fPIC does not enable the large code model for GCC on AIX but does for XL.
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
append("-mcmodel=large" CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "XL")
|
||||
# XL generates a small number of relocations not of the large model, -bbigtoc is needed.
|
||||
|
Loading…
Reference in New Issue
Block a user