Skip to content

Conversation

@evgeniy-paltsev
Copy link
Contributor

@evgeniy-paltsev evgeniy-paltsev commented Aug 12, 2021

Add C++ libs support when building with MWDT toolchain.

@evgeniy-paltsev evgeniy-paltsev self-assigned this Aug 12, 2021
@github-actions github-actions bot added area: API Changes to public APIs area: Build System area: Tests Issues related to a particular existing or missing test labels Aug 12, 2021
@evgeniy-paltsev evgeniy-paltsev added the DNM This PR should not be merged (Do Not Merge) label Aug 12, 2021
@stephanosio stephanosio self-requested a review August 13, 2021 02:57
The MWDT toolchain provides two C++ libraries. Let's use
LLVM C++ library.

Signed-off-by: Eugeniy Paltsev <[email protected]>
Signed-off-by: Evgeniy Paltsev <[email protected]>
As of today we have libraries provided by MWDT build with
stackcheck enabled. So we have to provide dummy
_fstack, _estack to make it working.

Signed-off-by: Eugeniy Paltsev <[email protected]>
Signed-off-by: Evgeniy Paltsev <[email protected]>
Add missing properties for C++14, C++17 standards support

Signed-off-by: Eugeniy Paltsev <[email protected]>
Signed-off-by: Evgeniy Paltsev <[email protected]>
@evgeniy-paltsev evgeniy-paltsev force-pushed the rff-mwdt-cpp-support-w-cpp-pr-v12 branch from 45c9b4f to fd43adf Compare August 13, 2021 19:42
Add cpp.libcxx.arcmwdtlib to test C++ library from MWDT
toolchain (with MWDT C library)

Signed-off-by: Eugeniy Paltsev <[email protected]>
Signed-off-by: Evgeniy Paltsev <[email protected]>
Fix include path of headers provided by MWDT toolchain for the
case of MWDT C/C++ lib usage.

Signed-off-by: Eugeniy Paltsev <[email protected]>
Signed-off-by: Evgeniy Paltsev <[email protected]>
@evgeniy-paltsev evgeniy-paltsev force-pushed the rff-mwdt-cpp-support-w-cpp-pr-v12 branch from fd43adf to 906211d Compare August 13, 2021 23:35
@evgeniy-paltsev evgeniy-paltsev added this to the v2.7.0 milestone Aug 14, 2021
ARC MWDT doesn't support building Zephyr as an native
application (CONFIG_NATIVE_APPLICATION).
ARC MWDT doesn't support building with CONFIG_NEWLIB_LIBC
as it doesn't have newlib.

Let's explicitly forbid to use these Kconfig options for the
MWDT toolchain.

Signed-off-by: Eugeniy Paltsev <[email protected]>
Signed-off-by: Evgeniy Paltsev <[email protected]>
@evgeniy-paltsev evgeniy-paltsev force-pushed the rff-mwdt-cpp-support-w-cpp-pr-v12 branch from 906211d to f33e52d Compare August 14, 2021 00:35
@evgeniy-paltsev evgeniy-paltsev changed the title [WIP] ARC: MWDT: add C++ support ARC: MWDT: add C++ support Aug 14, 2021
@evgeniy-paltsev evgeniy-paltsev marked this pull request as ready for review August 15, 2021 21:40
@evgeniy-paltsev evgeniy-paltsev removed the DNM This PR should not be merged (Do Not Merge) label Aug 15, 2021
@cfriedt
Copy link
Member

cfriedt commented Aug 20, 2021

@evgeniy-paltsev - is this ready to merge?

Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me.

@evgeniy-paltsev
Copy link
Contributor Author

evgeniy-paltsev - is this ready to merge?

Yes, it's ready.

@cfriedt cfriedt merged commit 27de1e2 into zephyrproject-rtos:main Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: ARC ARC Architecture area: Build System area: C++ area: Tests Issues related to a particular existing or missing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants