[DiscordArchive] let's say I have my module in `azeroth/modules/my-module` I have compiled it successfully with azero
[DiscordArchive] let's say I have my module in `azeroth/modules/my-module` I have compiled it successfully with azero
Archived author: mingbip • Posted: 2025-02-16T13:28:10.331000+00:00
Original source
let's say I have my module in `azeroth/modules/my-module` I have compiled it successfully with azerothcore (took a while):
```
cd $HOME/azerothcore && \
rm -rf build && \
mkdir build && \
cd build && \
cmake ../ \
-DCMAKE_INSTALL_PREFIX=$HOME/azerothcore/env/dist/ \
-DCMAKE_C_COMPILER=/usr/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-DWITH_WARNINGS=1 \
-DTOOLS_BUILD=all \
-DSCRIPTS=static \
-DMODULES=static \
-DMYSQL_INCLUDE_DIR=/usr/include/mysql \
```
And I want to tweak the code. What's the least compiling and command I should be using to integrate the change in the game servers?
Archived author: Honey • Posted: 2025-02-16T13:43:24.724000+00:00
Original source
As long as you don't change a file like unit.h, which is included in a lot of files, you should olnly ever need to compile your script. Which ideally takes only a second or two. Just do not press RE-build. Only build.
Archived author: mingbip • Posted: 2025-02-16T14:10:03.998000+00:00
Original source
what difference in command in terminal is re-build vs build?
Archived author: Ryan Turner • Posted: 2025-02-16T14:13:45.181000+00:00
Original source
Refering to Visual studio? To my understand rebuild it's the same clean solution and building again by other words, removes the cache and starts from 0 the compile.
Archived author: mingbip • Posted: 2025-02-16T14:14:27.098000+00:00
Original source
didn't quite get it. In the shell, what difference between re-build and build?
Archived author: mingbip • Posted: 2025-02-16T14:19:24.101000+00:00
Original source
i'm trying this, to only rebuild my module related code and install it
`cd $HOME/azerothcore/build && make modules -j$(nproc) && make install`
wish me luck
Archived author: Ryan Turner • Posted: 2025-02-16T14:22:01.764000+00:00
Original source
I will assume is the same for linux but i can't be sure i dont use linux
Archived author: Honey • Posted: 2025-02-16T14:23:22.602000+00:00
Original source
The difference in outcome is a 2 second compile vs a 15minute compile (results may vary by machine used)
Archived author: mingbip • Posted: 2025-02-16T14:25:01.748000+00:00
Original source
is my command the right one to use? it does go super fast (less than 10s)
Archived author: Honey • Posted: 2025-02-16T14:25:32.487000+00:00
Original source
I don't know, i don't use linux.