Toolchain: Use gcc's ar

the vanilla versions might not handle all things, that gcc can do;
For example is lto not really supported by the vanilla versions
source:
https://gcc.gnu.org/wiki/LinkTimeOptimizationFAQ
This commit is contained in:
Hediadyoin1 2021-06-03 01:20:58 +02:00 committed by Linus Groh
parent 0d1481be7d
commit 6fe7d4d7b8
Notes: sideshowbarker 2024-07-18 16:59:04 +09:00

View file

@ -20,7 +20,8 @@ set(CMAKE_STAGING_PREFIX ${SERENITY_BUILD_DIR}/Root/usr/local)
set(CMAKE_INSTALL_PREFIX ${SERENITY_BUILD_DIR}/Root/usr/local)
set(CMAKE_INSTALL_DATAROOTDIR ${SERENITY_BUILD_DIR}/Root/usr/local/share)
set(CMAKE_AR $ENV{SERENITY_ARCH}-pc-serenity-ar)
set(CMAKE_AR $ENV{SERENITY_ARCH}-pc-serenity-gcc-ar)
set(CMAKE_RANLIB $ENV{SERENITY_ARCH}-pc-serenity-gcc-ranlib)
set(CMAKE_C_COMPILER $ENV{SERENITY_ARCH}-pc-serenity-gcc)
set(CMAKE_CXX_COMPILER $ENV{SERENITY_ARCH}-pc-serenity-g++)