diff options
author | Hediadyoin1 <leon2002.la@gmail.com> | 2021-06-03 01:20:58 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-03 00:24:06 +0100 |
commit | 6fe7d4d7b87ddef0631ede04985e4377862ac3e1 (patch) | |
tree | 594744797bd5242626a6559f016ff725c4fd69db /Toolchain | |
parent | 0d1481be7dd2e27207f293b8ad45f5b1464e5a1a (diff) | |
download | serenity-6fe7d4d7b87ddef0631ede04985e4377862ac3e1.zip |
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
Diffstat (limited to 'Toolchain')
-rw-r--r-- | Toolchain/CMake/CMakeToolchain.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Toolchain/CMake/CMakeToolchain.txt b/Toolchain/CMake/CMakeToolchain.txt index a045b9c3e4..6c30b7d98f 100644 --- a/Toolchain/CMake/CMakeToolchain.txt +++ b/Toolchain/CMake/CMakeToolchain.txt @@ -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++) |