summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service
diff options
context:
space:
mode:
authorKlaus T. Aehlig <aehlig@linta.de>2023-01-25 20:11:22 +0000
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-01-26 13:03:06 +0100
commit5d590b2ca23d079ebf436dda037fbf0e13605e3a (patch)
tree838b4c6b3b3dbf4f4c97980ee510e32df9cb4d66 /src/buildtool/execution_api/execution_service
parentdaa2de1617c4f71e4502be407409150bf2d0467c (diff)
downloadjustbuild-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