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

[Xtensa] Fix Clang builtins include directory (LLVM-293) #84

Conversation

aykevl
Copy link

@aykevl aykevl commented Oct 24, 2023

This fixes #83.

In short, it adjusts the include path logic to include the builtins directory as long as -nostdinc or -nobuiltininc isn't specified.
Previously, the builtins directory would not be included if either the GCC installation wasn't found, or -nostdlibinc was specified (both of which aren't related to the builtins directory).

I've tested this patch on TinyGo, but didn't test it otherwise.

This fixes espressif#83

In short, it adjusts the include path logic to include the builtins
directory as long as `-nostdinc` or `-nobuiltininc` isn't specified.
Previously, the builtins directory would not be included if either the
GCC installation wasn't found, or `-nostdlibinc` was specified (both of
which aren't related to the builtins directory).
@github-actions github-actions bot changed the title [Xtensa] Fix Clang builtins include directory [Xtensa] Fix Clang builtins include directory (LLVM-293) Oct 24, 2023
@gerekon
Copy link
Collaborator

gerekon commented Oct 26, 2023

@aykevl Thanks. Pulling this. Should be in the upcoming release.

@espressif-bot espressif-bot added Status: In Progress work is in progress and removed Status: Opened labels Oct 26, 2023
@gerekon gerekon closed this Nov 15, 2023
aykevl added a commit to tinygo-org/tinygo that referenced this pull request Feb 19, 2024
This workaround is no longer needed now that we've switched to LLVM 17
where this bug has been fixed upstream:
espressif/llvm-project#84
deadprogram pushed a commit to tinygo-org/tinygo that referenced this pull request Feb 19, 2024
This workaround is no longer needed now that we've switched to LLVM 17
where this bug has been fixed upstream:
espressif/llvm-project#84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Status: Done Issue is done internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants