Skip to content

build: Avoid forcing -include arch/config.h into global CFLAGS/AFLAGS#15

Open
bernhardkaindl wants to merge 1 commit into
andyhhp:masterfrom
bernhard-xs:build-avoid-forced-relative-cc-include-arg
Open

build: Avoid forcing -include arch/config.h into global CFLAGS/AFLAGS#15
bernhardkaindl wants to merge 1 commit into
andyhhp:masterfrom
bernhard-xs:build-avoid-forced-relative-cc-include-arg

Conversation

@bernhardkaindl

Copy link
Copy Markdown
Contributor

Stop forcing -include arch/config.h into global CFLAGS/AFLAGS and instead include architecture-specific arch/config.h only when in the header which requires them.

This prevents the build/language-server from seeing architecture-only headers unconditionally and fixes language-server failures and spurious parsing errors in IDEs caused by unconditional inclusion of architecture headers and missing arch config in certain builds.

Stop forcing -include arch/config.h into global CFLAGS/AFLAGS
and instead include architecture-specific arch/config.h only
when in the header which requires them.

This prevents the build/language-server from seeing architecture-only
headers unconditionally and fixes language-server failures and spurious
parsing errors in IDEs caused by unconditional inclusion of architecture
headers and missing arch config in certain builds.
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.

1 participant