Skip to content

Compile as C code via VPC #1199

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

Open
Adrianilloo opened this issue Apr 14, 2025 · 0 comments
Open

Compile as C code via VPC #1199

Adrianilloo opened this issue Apr 14, 2025 · 0 comments

Comments

@Adrianilloo
Copy link

Adrianilloo commented Apr 14, 2025

Time ago I managed to create a custom SQLite3 driver project which embeds the all-in-one native sqlite3.c amalgamation file, setting it to compile as C code (as it's necessary given it fails with C++ compilers otherwise). I did it using $CompileAs for Windows and a $CustomBuildStep for Linux.

However, the later entry now fails with the updated VPC Linux executable from the "TF2-SDK" update, causing an error in my Azure DevOps CI/CD pipeline (during VPC projects creation):

ERROR: Could not get $CustomBuildStep tool interface from configuration

It seems support for this was removed on Linux, at least. So, I first tried to reuse the $CompileAs directive, originally aimed for Windows, and it made no effect (VPC generated correctly but compilation errors stayed).

For reference, this is my original VPC file.

I saw the VPC sample file for libspng, for reference, and I tried adding $GCC_ExtraCompilerFlags "$BASE -x c" [$POSIX], but it didn't work.

Related: #774

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

No branches or pull requests

1 participant