Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] cmake toolchain cleanup system include handling #13648

Closed
wants to merge 2 commits into from

Conversation

galak
Copy link
Collaborator

@galak galak commented Feb 21, 2019

No description provided.

@galak galak requested review from mped-oticon and aurel32 February 21, 2019 23:34
@galak galak changed the title [DNM]Cmake get sys inc [DNM] cmake toolchain cleanup system include handling Feb 21, 2019
@galak
Copy link
Collaborator Author

galak commented Feb 21, 2019

All this is a wip in progress to cleanup how we get the include path for libgcc, libc, and c++ headers. This seems to fix libc with the SDK toolchain and cross-toolchain on fedora.

@aurel32 can you try this on debian.

@galak galak added area: Build System area: Toolchains Toolchains bug The issue is a bug, or the PR is fixing a bug labels Feb 21, 2019
@zephyrbot
Copy link
Collaborator

zephyrbot commented Feb 21, 2019

All checks are passing now.

Review history of this comment for details about previous failed status.
Note that some checks might have not completed yet.

@codecov-io
Copy link

codecov-io commented Feb 22, 2019

Codecov Report

Merging #13648 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13648      +/-   ##
==========================================
- Coverage   52.51%   52.48%   -0.04%     
==========================================
  Files         329      329              
  Lines       46910    46910              
  Branches    10811    10811              
==========================================
- Hits        24637    24621      -16     
- Misses      17340    17352      +12     
- Partials     4933     4937       +4
Impacted Files Coverage Δ
subsys/testsuite/ztest/include/ztest_assert.h 35% <0%> (-35%) ⬇️
subsys/testsuite/ztest/src/ztest.c 65.28% <0%> (-7.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82616a6...e8f2ffa. Read the comment docs.

@aurel32
Copy link
Collaborator

aurel32 commented Feb 22, 2019

All this is a wip in progress to cleanup how we get the include path for libgcc, libc, and c++ headers. This seems to fix libc with the SDK toolchain and cross-toolchain on fedora.

I still do not get why we use -notstdinc if we just re-add all those path manually.

@aurel32 can you try this on debian.

It works for finding the libc, but it doesn't work for C++ headers, neither in debian nor with SDK 0.1.0. You can find a way to test that in PR #13646

@aurel32
Copy link
Collaborator

aurel32 commented Feb 22, 2019

All this is a wip in progress to cleanup how we get the include path for libgcc, libc, and c++ headers. This seems to fix libc with the SDK toolchain and cross-toolchain on fedora.

I still do not get why we use -notstdinc if we just re-add all those path manually.

Also note that this strategy will not work for include paths added by a spec file, like it should be done in PR #12735 (but it's not done like that yet).

@galak galak force-pushed the cmake-get-sys-inc branch from 25fd8e1 to c98d0dc Compare February 22, 2019 14:49
Use some cmake module to get the system include paths ...

Signed-off-by: Kumar Gala <[email protected]>
Excplicitly add C++ system header include path if we are building a c++
app.

Signed-off-by: Kumar Gala <[email protected]>
@galak galak force-pushed the cmake-get-sys-inc branch from c98d0dc to e8f2ffa Compare February 22, 2019 16:14
@marc-h38
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System area: Toolchains Toolchains bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants