diff options
author | Klaus T. Aehlig <aehlig@linta.de> | 2023-01-25 20:11:22 +0000 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-01-26 13:03:06 +0100 |
commit | 5d590b2ca23d079ebf436dda037fbf0e13605e3a (patch) | |
tree | 838b4c6b3b3dbf4f4c97980ee510e32df9cb4d66 /src/buildtool/execution_api/execution_service | |
parent | daa2de1617c4f71e4502be407409150bf2d0467c (diff) | |
download | justbuild-5d590b2ca23d079ebf436dda037fbf0e13605e3a.tar.gz |
Fix boostrapping on less optimizing compilers
While compilers are allowed to drop unused functions in anonymous
name spaces, and in this way also the open linker symbols referenced
there, they are not obliged to do so. Not optimizing away such
unused functions when compiled with -DBOOTSTRAP_BUILD_TOOL causes
the linking fail in the initial phase of the boostrap process where
libgit2 is not yet available (nor really needed). Therefore, ensure
that those dead functions are absent in the initial bootstrap phase
using appropriate preprocessor directives.
Signed-off-by: Klaus T. Aehlig <aehlig@linta.de>
Diffstat (limited to 'src/buildtool/execution_api/execution_service')
0 files changed, 0 insertions, 0 deletions