headmelted / codebuilds

Community builds of Visual Studio Code for Chromebooks and Raspberry Pi
https://code.headmelted.com
MIT License
1.03k stars 56 forks source link

Using Microsoft C/C++ extension via "emulation"? #85

Open natevw opened 4 years ago

natevw commented 4 years ago

I would like to use the official C/C++ extension on my Chromebook, but it fails to install when I click the button from within the Code-OSS extensions tab.

This wasn't a major surprise since "The extension has platform-specific binary dependencies" and only the four big build targets (Windows, macOS, Linux 32-bit, Linux 64-bit binaries) are mentioned. So I figured that was the end of that, until I noticed this in the Code-OSS FAQ:

Any dependencies that are not local to your architecture (e.g. x86 binary code on an ARM chromebook) will be emulated to ensure compatibility [...]

What's this now?? Is this something added on by this project or does the mainline VSC provide some sort of cross-CPU emulation? That seems pretty ambitious, but I'm wondering if I can take advantage of it for this C/C++ plugin. If so, which of the four available "offline" VSIX options would be the best to try it with?

natevw commented 4 years ago

Based on the subjunctive tense in the recent https://github.com/microsoft/vscode/issues/1031#issuecomment-563236471 posting my guess is that the FAQ text was a Forward Looking Statement at that time too :-)

headmelted commented 4 years ago

I had this working quite some time back but there were changes in the upstream builds that broke it and it kind of fell by the wayside.

It’s not a big job to do (one of my other repos, Archie, uses this extensively to produce these builds), but I’m kind of wondering if it belongs better in a separate script for people that need it.

I’m going to look at this next and will update this ticket when I have something for you to test.

natevw commented 4 years ago

Ah, okay! Thanks for the clarification/pointers and welcome back :-)