1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00

Use mold linker

This commit is contained in:
elsid 2022-07-31 20:02:32 +02:00
parent f1f3d12f7b
commit 7036b1e94d
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625
3 changed files with 6 additions and 9 deletions

View File

@ -589,7 +589,7 @@ Ubuntu_AndroidNDK_arm64-v8a:
- ccache/
- build/extern/fetched/
before_script:
- CI/install_debian_deps.sh gcc
- CI/install_debian_deps.sh android
stage: build
script:
- df -h

View File

@ -28,6 +28,7 @@ declare -a CMAKE_CONF_OPTS=(
-DUSE_SYSTEM_TINYXML=ON
-DOPENMW_USE_SYSTEM_RECASTNAVIGATION=ON
-DOPENMW_CXX_FLAGS="-Werror -Werror=implicit-fallthrough" # flags specific to OpenMW project
-DCMAKE_EXE_LINKER_FLAGS="${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=mold"
)
if [[ $CI_OPENMW_USE_STATIC_DEPS ]]; then
@ -63,12 +64,6 @@ if [[ "${CMAKE_CXX_FLAGS_DEBUG}" ]]; then
)
fi
if [[ "${CMAKE_EXE_LINKER_FLAGS}" ]]; then
CMAKE_CONF_OPTS+=(
-DCMAKE_EXE_LINKER_FLAGS="${CMAKE_EXE_LINKER_FLAGS}"
)
fi
if [[ "${BUILD_WITH_CODE_COVERAGE}" ]]; then
CMAKE_CONF_OPTS+=(
-DBUILD_WITH_CODE_COVERAGE="${BUILD_WITH_CODE_COVERAGE}"

View File

@ -9,8 +9,8 @@ print_help() {
}
declare -rA GROUPED_DEPS=(
[gcc]="binutils gcc build-essential cmake ccache curl unzip git pkg-config"
[clang]="binutils clang make cmake ccache curl unzip git pkg-config"
[gcc]="binutils gcc build-essential cmake ccache curl unzip git pkg-config mold"
[clang]="binutils clang make cmake ccache curl unzip git pkg-config mold"
# Common dependencies for building OpenMW.
[openmw-deps]="
@ -75,6 +75,8 @@ declare -rA GROUPED_DEPS=(
python3-pip
xvfb
"
[android]="binutils build-essential cmake ccache curl unzip git pkg-config"
)
if [[ $# -eq 0 ]]; then