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

Allow using system spirv cross #17080

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

Conversation

Apteryks
Copy link

@Apteryks Apteryks commented Oct 6, 2024

Description

This change teaches the build system to use a system provided SPIRV-Cross library when RetroArch is configured via configure --disable-builtinspirv_cross flag.

Related Issues

#17079

Fixes: libretro#17079

* Makefile.common [HAVE_BUILTINSPIRV_CROSS]: Include bundled
SPIRV-Cross sources only when using the builtin option, else...
[!HAVE_BUILTINSPIRV_CROSS]: Extend CXXFLAGS and LIBS.
* qb/config.libs.sh (BUILTINSPIRV_CROSS): Register new check_enabled
configure option, and add libraries/header checks.
* qb/config.params.sh (HAVE_BUILTINSPIRV_CROSS): Register new parameter.
…bles.

C_INCLUDE_PATH and CPLUS_INCLUDE_PATH are consulted by GCC, so should
be considered by check_libs as well.

* qb/config.libs.sh (INCLUDES): Add C_INCLUDE_PATH and
CPLUS_INCLUDE_PATH values to it.
@LibretroAdmin
Copy link
Contributor

This is an issue as can be seen in the CI jobs.

We don't really want our current platforms to use system-provided SPIRV-Cross. You can add this functionality but it should be optional and should not be the default.

@Apteryks
Copy link
Author

Apteryks commented Oct 7, 2024

We don't really want our current platforms to use system-provided SPIRV-Cross. You can add this functionality but it should be optional and should not be the default.

It already should be optional; unless someone passes the --disable-builtinspirv_cross configure flag, it shouldn't change anything. I'll look at the one CI failure now, thanks.

@Apteryks
Copy link
Author

Apteryks commented Oct 7, 2024

I've looked at the WiiU build failure, and I'm puzzled. Is it possible to build with V=1 in to see which CXXFLAGS were used?

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.

2 participants