Added faster linker

This commit is contained in:
2024-09-05 19:55:58 -04:00
parent 90f0b69df1
commit 94d0f7a286
4 changed files with 11 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ env:
jobs:
assign_one_project:
runs-on: ubuntu-latest
if: github.repository == 'azerothcore/azerothcore-wotlk'
name: Assign to One Project
steps:
@@ -103,4 +104,4 @@ jobs:
contains(github.event.issue.labels.*.name, '80')
with:
project: 'https://github.com/azerothcore/azerothcore-wotlk/projects/38'

View File

@@ -42,7 +42,8 @@ WORKDIR /azerothcore
FROM skeleton AS build
ARG CTOOLS_BUILD="all"
ARG CTYPE="RelWithDebInfo"
# ARG CTYPE="RelWithDebInfo"
ARG CTYPE="Release"
ARG CCACHE_CPP2="true"
ARG CSCRIPTPCH="OFF"
ARG CSCRIPTS="static"
@@ -53,7 +54,7 @@ ARG CMAKE_EXTRA_OPTIONS=""
ARG GIT_DISCOVERY_ACROSS_FILESYSTEM=1
ARG CCACHE_DIR="/ccache"
ARG CCACHE_MAXSIZE="1000MB"
ARG CCACHE_MAXSIZE="1500MB"
ARG CCACHE_SLOPPINESS="pch_defines,time_macros,include_file_mtime"
ARG CCACHE_COMPRESS=""
ARG CCACHE_COMPRESSLEVEL="9"
@@ -99,6 +100,9 @@ RUN --mount=type=cache,target=/ccache,sharing=locked \
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
-DBoost_USE_STATIC_LIBS="ON" \
-DCMAKE_LINKER=lld \
-DCMAKE_CXX_LINKER=lld \
-DCMAKE_C_LINKER=lld \
&& cmake --build . --config "$CTYPE" -j $(($(nproc) + 1)) \
&& cmake --install . --config "$CTYPE"

View File

@@ -66,9 +66,11 @@ services:
DOCKER_USER: ${DOCKER_USER:-acore}
networks:
- ac-network
stdin_open: true
tty: true
restart: unless-stopped
privileged: true
env_file:
${DOCKER_AC_ENV_FILE:-conf/dist/env.ac}
environment:

View File

@@ -234,7 +234,7 @@ void ScriptMgr::CheckIfScriptsInDatabaseExist()
!ScriptRegistry<GroupScript>::GetScriptById(sid) &&
!ScriptRegistry<DatabaseScript>::GetScriptById(sid))
{
LOG_ERROR("sql.sql", "Script named '{}' is assigned in the database, but has no code!", scriptName);
LOG_ERROR("sql.sql", "Script named '{}' Id {} is assigned in the database, but has no code!", scriptName, sid);
}
}
}