diff options
author | Zahir Hussain <zahir.basha@kpit.com> | 2023-12-01 17:46:17 +0530 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-02-28 03:32:09 -1000 |
commit | 3a5e8733ef1f756e29235f1272cdb2669654ad58 (patch) | |
tree | 496eab8c94066ddbfd3a9c5265d5847435bd402d /scripts/lib/recipetool/create_buildsys_python.py | |
parent | f517fe8929ee256521e025bd40c006a35bd97660 (diff) | |
download | poky-3a5e8733ef1f756e29235f1272cdb2669654ad58.tar.gz |
cmake: Unset CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
As discussion in [YOCTO #14717] cmake contains a OEToolchainConfig.cmake
file to configure the toolchain correctly in cross-compile build for recipes
using cmake.
The variable CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES value updates incorrectly
during do_compile the code. Due to this getting sporadic error like below,
fatal error: stdlib.h: No such file or directory
| 75 | #include_next <stdlib.h>
| | ^~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
As cmake already correctly initializes the variable from environment,
So we have to unset it in the toolchain file to avoid overwriting the
variable definition again.
(From OE-Core rev: 2b0b47fd0cafdb9de5025efda4140e11ea447afa)
Signed-off-by: aszh07 <mail2szahir@gmail.com>
Signed-off-by: Zahir Hussain <zahir.basha@kpit.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5aeada5793af53e8c93940952d4f314474dca4c2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/recipetool/create_buildsys_python.py')
0 files changed, 0 insertions, 0 deletions