Optimization Help #21
-
In November I designed https://github.com/DiscordPP/plugin-endpoints/tree/dev/native to use Metalang99 to generate endpoints and objects for the Discord API, but there's a small problem- compilation takes so long that CLion times out CMake, I think while it's doing precompiled headers. Does anyone have any tips for optimizing what I've done, or maybe ways to preprocess things before including them in the project? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hello! Have you tried precompiling the headers manually before launching CLion? E.g., there is |
Beta Was this translation helpful? Give feedback.
-
I'm not 100% certain but I think that's actually the step where CLion times
out
…On Fri, Feb 11, 2022, 11:05 AM Hirrolot ***@***.***> wrote:
Hello! Have you tried to precompile the headers manually before launching
CLion? E.g., there is target_precompile_headers
<https://cmake.org/cmake/help/git-stage/command/target_precompile_headers.html>
in CMake, which allows to do it automatically. My logic is that after the
headers are precompiled, CLion will find the corresponding files in the
directory and will not perform the precompiling anymore.
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYT6YRGDBFHHAS5JZ6BP7DU2U6V5ANCNFSM5OENKFFQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@UndarkAido, does precompiling the headers before launching CLion help? In particular, precompiling the whole |
Beta Was this translation helpful? Give feedback.
Hello! Have you tried precompiling the headers manually before launching CLion? E.g., there is
target_precompile_headers
in CMake, which allows to do it automatically. My logic is that after the headers are precompiled, CLion will find the corresponding files in the directory and will not perform the precompiling anymore.