Skip to content

Core/Scripting: Fix the hotswap build with newer Boost - #503

Merged
Ovahlord merged 2 commits into
The-Cataclysm-Preservation-Project:masterfrom
KaputterKerl:Fix_Boost_Hotswap_Build
Oct 17, 2026
Merged

Ovahlord merged 2 commits into
The-Cataclysm-Preservation-Project:masterfrom
KaputterKerl:Fix_Boost_Hotswap_Build

Conversation

@KaputterKerl

@KaputterKerl KaputterKerl commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Changes proposed:

  • Drop the copy option argument from fs::copy_file in HotSwapScriptReloadMgr::ProcessLoadScriptModule, in sync with TrinityCore. The old fs::copy_option::fail_if_exists enum is gone in newer Boost versions (tested with 1.90), and the default behavior (error if the target exists) is what the call relied on.

Target branch(es): 4.3.4

Issues addressed: The worldserver fails to build with -DSCRIPTS=dynamic: error: 'fs::copy_option' has not been declared; did you mean 'fs::copy_options'?

Tests performed: Built ScriptReloadMgr.cpp with Boost 1.90 and -DSCRIPTS=dynamic. Not tested with Boost versions below 1.90.

boost::filesystem::copy_option was removed in newer Boost versions, use
copy_options::none, which is the same as the removed fail_if_exists.
@Ovahlord

Copy link
Copy Markdown
Member

@KaputterKerl

Copy link
Copy Markdown
Contributor Author

Done, the call now matches upstream (fs::copy_file(path, cache_path, code)).

@Ovahlord
Ovahlord merged commit dd88995 into The-Cataclysm-Preservation-Project:master Oct 17, 2026
2 checks passed
@KaputterKerl
KaputterKerl deleted the Fix_Boost_Hotswap_Build branch October 18, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants