Skip to content

Ensure out-of-tree API builds succeed across all platforms#8252

Open
fuzyll wants to merge 2 commits into
devfrom
test_fix_out_of_tree_build_failures
Open

Ensure out-of-tree API builds succeed across all platforms#8252
fuzyll wants to merge 2 commits into
devfrom
test_fix_out_of_tree_build_failures

Conversation

@fuzyll
Copy link
Copy Markdown
Contributor

@fuzyll fuzyll commented Jun 7, 2026

A user last week complained that we had broken the ability to build the API and some examples with a change we made. It wasn't broken for us, since we build in-tree, but customers don't have the rest of our source code.

As it turns out, @CouleeApps wrote a nice little script that lets us test this out-of-tree build process in February 2022 so we wouldn't have this problem. Unfortunately, it appears to have been taken out of our build process pretty quickly because it added a lot of overall time to builds.

I've gone ahead and set up a new nightly process for ensuring we are made aware when we break builds for customers. To do this, I've split the original script @CouleeApps wrote into two–one for us to test in-tree builds with, and one to test out-of-tree builds with. (They were previously both in the same script, so the former would fail with my setup that approximates a customer's environment.)

In the process of doing this, I discovered that the Triage example would no longer build on Windows and the API itself would not build with clang 14 on Ubuntu 22.04. This PR fixes those issues in the quickest and most straight-forward way I could figure out how.

I have separately run a full build with these API changes through CI as well, which has succeeded. Just want someone else to look these over and ensure they look reasonable before I merge them.

fuzyll added 2 commits June 6, 2026 21:11
Also forces Release mode in these scripts by default because apparently
the typical default is Debug.
When building the API out-of-tree on Ubuntu 22.04 with clang 14.0, I
encountered some build failures. These changes fixed that. I don't fully
understand why clang believes they are necessary, but it appears to.
@fuzyll fuzyll added this to the Krypton milestone Jun 7, 2026
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