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

Fix: Pass Build env PATH to CMake build #377

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

kolipakakondal
Copy link
Collaborator

This will make sure PATH from the Preferences > C/C++ > Build > Environment > PATH is honored while compiling a project.

What was happening earlier?
Eclipse uses the CMake command to build a project and this is run through Java process runner. By default, the PATH environment for the Java process is system PATH. If there are multiple python environments found in the system there was an issue during the compilation stage especially while running on Apple M1 systems due to different python architectures

What will happen with PR changes?
This will make sure Java CMake build process is run through C/C++ > Build > Environment PATH variable. PATH in preference build environment always configured from the the idf.py export command and it has correct python_env based on the idf version and system architecture

This will make sure PATH from the CDT>Build>ENV>PATH is honored
Copy link
Collaborator

@sigmaaa sigmaaa left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@alirana01 alirana01 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kolipakakondal kolipakakondal marked this pull request as draft February 2, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants