mirror of https://github.com/mgba-emu/mgba.git
PSP2: Fix toolchains and allow building LTO
This commit is contained in:
parent
c7d48ab087
commit
0abe9f524d
|
@ -22,9 +22,10 @@ set(arch_flags "-march=armv7-a -mtune=cortex-a9 -specs=psp2.specs")
|
|||
set(link_flags "-L${toolchain_dir}/lib")
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Generic CACHE INTERNAL "system name")
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm CACHE INTERNAL "processor")
|
||||
set(CMAKE_SYSTEM_PROCESSOR armv7a- CACHE INTERNAL "processor")
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE arm-none-eabi CACHE INTERNAL "abi")
|
||||
set(CMAKE_AR ${cross_prefix}ar CACHE INTERNAL "archiver")
|
||||
set(CMAKE_AR ${cross_prefix}gcc-ar CACHE INTERNAL "archiver")
|
||||
set(CMAKE_RANLIB ${cross_prefix}gcc-ranlib CACHE INTERNAL "ranlib")
|
||||
set(CMAKE_C_COMPILER ${cross_prefix}gcc CACHE INTERNAL "c compiler")
|
||||
set(CMAKE_CXX_COMPILER ${cross_prefix}g++ CACHE INTERNAL "cxx compiler")
|
||||
set(CMAKE_ASM_COMPILER ${cross_prefix}gcc CACHE INTERNAL "assembler")
|
||||
|
|
|
@ -11,9 +11,10 @@ set(inc_flags -I${toolchain_dir}/include)
|
|||
set(link_flags "-L${toolchain_dir}/lib -Wl,-q")
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Generic CACHE INTERNAL "system name")
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm CACHE INTERNAL "processor")
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE arm-none-eabi CACHE INTERNAL "abi")
|
||||
set(CMAKE_AR ${cross_prefix}ar CACHE INTERNAL "archiver")
|
||||
set(CMAKE_SYSTEM_PROCESSOR armv7-a CACHE INTERNAL "processor")
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE arm-vita-eabi CACHE INTERNAL "abi")
|
||||
set(CMAKE_AR ${cross_prefix}gcc-ar CACHE INTERNAL "archiver")
|
||||
set(CMAKE_RANLIB ${cross_prefix}gcc-ranlib CACHE INTERNAL "ranlib")
|
||||
set(CMAKE_C_COMPILER ${cross_prefix}gcc CACHE INTERNAL "c compiler")
|
||||
set(CMAKE_CXX_COMPILER ${cross_prefix}g++ CACHE INTERNAL "cxx compiler")
|
||||
set(CMAKE_ASM_COMPILER ${cross_prefix}gcc CACHE INTERNAL "assembler")
|
||||
|
|
Loading…
Reference in New Issue